Skip to content

Commit

Permalink
fix: rename exported variable name of feature service
Browse files Browse the repository at this point in the history
  • Loading branch information
ivorscott committed Nov 28, 2023
1 parent 04a73b6 commit 43375be
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ import { PinnedProvider } from "services/PinnedProvider";

import awsconfig from "./aws-exports";
import { EarlyAccessForm } from "./components/EarlyAccessForm";
import { features } from "./services/FeatureService";
import { feature } from "./services/FeatureService";
import { theme } from "./theme";

features.applyOverrides();
feature.applyOverrides();

Amplify.configure({
...awsconfig,
Expand Down Expand Up @@ -94,7 +94,7 @@ const components = {
Footer() {
return (
<View textAlign="center">
{features.flags["F001"] && <EarlyAccessForm />}
{feature.flags["F001"] && <EarlyAccessForm />}
</View>
);
},
Expand Down Expand Up @@ -126,7 +126,7 @@ const App = withAuthenticator(
</BrowserRouter>
</QueryClientProvider>
),
{ hideSignUp: features.flags["F001"], components }
{ hideSignUp: feature.flags["F001"], components }
);

const container = document.getElementById("root");
Expand Down
2 changes: 1 addition & 1 deletion src/services/FeatureService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ class FeatureService {
}
}

export const features = new FeatureService();
export const feature = new FeatureService();

0 comments on commit 43375be

Please sign in to comment.