Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
jvmi7 committed Feb 5, 2025
1 parent f2d9642 commit 31e681f
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 72 deletions.
3 changes: 1 addition & 2 deletions components/AskAIButton.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { RiSparkling2Fill } from '@remixicon/react';
import { useFeature } from '@growthbook/growthbook-react';

const AskAIButton = () => {
const enableDocsAIWidget = useFeature('enable_docs_ai_widget').on;
const enableDocsAIWidget = true;

if (!enableDocsAIWidget) {
return null;
Expand Down
17 changes: 0 additions & 17 deletions lib/growthbook.ts

This file was deleted.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"@eth-optimism/contracts-ts": "^0.17.0",
"@eth-optimism/tokenlist": "^9.0.9",
"@feelback/react": "^0.3.4",
"@growthbook/growthbook-react": "^1.3.1",
"@headlessui/react": "^2.1.8",
"@remixicon/react": "^4.6.0",
"algoliasearch": "^4.23.3",
Expand Down
27 changes: 12 additions & 15 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import * as gtag from '../utils/gtag';
import * as aa from 'search-insights';
import AlgoliaContext from '@/utils/contexts/AlgoliaContext';
import ScrollDispatcher from '@/components/ScrollDispatcher';
import { CustomGrowthBookProvider } from '../providers/GrowthbookProvider';

export default function App({ Component, pageProps }) {
const [queryID, setQueryID] = useState(null);
Expand All @@ -29,19 +28,17 @@ export default function App({ Component, pageProps }) {
});

return (
<CustomGrowthBookProvider>
<AlgoliaContext.Provider
value={{
queryID,
setQueryID,
objectID,
setObjectID
}}
>
<ScrollDispatcher>
<Component {...pageProps} />
</ScrollDispatcher>
</AlgoliaContext.Provider>
</CustomGrowthBookProvider>
<AlgoliaContext.Provider
value={{
queryID,
setQueryID,
objectID,
setObjectID
}}
>
<ScrollDispatcher>
<Component {...pageProps} />
</ScrollDispatcher>
</AlgoliaContext.Provider>
);
}
28 changes: 0 additions & 28 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 0 additions & 7 deletions providers/GrowthbookProvider.tsx

This file was deleted.

3 changes: 1 addition & 2 deletions theme.config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { FeelbackYesNo, PRESET_LIKE_DISLIKE } from '@feelback/react';
import '@feelback/react/styles/feelback.css';
import { Search } from './components/Search';
import { AskAIButton } from './components/AskAIButton';
import { useFeature } from '@growthbook/growthbook-react';

const config: DocsThemeConfig = {
logo: (
Expand Down Expand Up @@ -117,7 +116,7 @@ const config: DocsThemeConfig = {
const { asPath, defaultLocale, locale } = useRouter();
const { frontMatter } = useConfig();
const url = 'https://docs.optimism.io' + (defaultLocale === locale ? asPath : `/${locale}${asPath}`);
const enableDocsAIWidget = useFeature('enable_docs_ai_widget').on;
const enableDocsAIWidget = true;

return (
<>
Expand Down

0 comments on commit 31e681f

Please sign in to comment.