From ed7c68dcf24efaaa30c8b877eeea9f37c10407a8 Mon Sep 17 00:00:00 2001 From: Evgenii Date: Thu, 26 Sep 2024 19:42:40 +0800 Subject: [PATCH 1/4] feat: get rid of google fonts api --- package.json | 1 + pages/_app.tsx | 7 +++---- pages/_document.tsx | 3 +-- shared/ui/index.ts | 1 + shared/ui/uiProvider/index.tsx | 31 +++++++++++++++++++++++++++++++ yarn.lock | 16 +++++++++++++++- 6 files changed, 52 insertions(+), 7 deletions(-) create mode 100644 shared/ui/uiProvider/index.tsx diff --git a/package.json b/package.json index 1b3362a..b96b03d 100644 --- a/package.json +++ b/package.json @@ -37,6 +37,7 @@ "prom-client": "^14.0.1", "react": "^18.2.0", "react-dom": "^18.2.0", + "react-helmet-async": "^2.0.5", "react-hook-form": "^7.43.9", "react-is": "^18.2.0", "reef-knot": "1.11.1", diff --git a/pages/_app.tsx b/pages/_app.tsx index ce89dce..207ceda 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -5,9 +5,8 @@ import { CookiesTooltip, migrationAllowCookieToCrossDomainCookieClientSide, migrationThemeCookiesToCrossDomainCookiesClientSide, - CookieThemeProvider, } from '@lidofinance/lido-ui'; -import { GlobalStyle } from 'shared/ui'; +import { GlobalStyle, UiProvider } from 'shared/ui'; import { ModalProvider } from 'features/walletModal'; import { ProviderWeb3 } from 'reef-knot/web3-react'; import dynamics from 'config/dynamics'; @@ -38,7 +37,7 @@ const AppWrapper = (props: AppProps): JSX.Element => ( TRP UI | Lido - + {/* @ts-expect-error need to patch web3-react */} ( - + ); diff --git a/pages/_document.tsx b/pages/_document.tsx index baf9fcc..026dba4 100644 --- a/pages/_document.tsx +++ b/pages/_document.tsx @@ -6,7 +6,7 @@ import Document, { DocumentContext, DocumentInitialProps, } from 'next/document'; -import { Fonts, LidoUIHead } from '@lidofinance/lido-ui'; +import { LidoUIHead } from '@lidofinance/lido-ui'; import { ServerStyleSheet } from 'styled-components'; import { dynamics } from '../config'; @@ -62,7 +62,6 @@ const CustomDocument = () => { -