refactor: run formatter
This commit is contained in:
@@ -41,7 +41,7 @@ function App({ Component, pageProps }: AppProps) {
|
||||
const [route, setRoute] = useState<string>(pageProps.route);
|
||||
|
||||
const [configVariables, setConfigVariables] = useState<Config[]>(
|
||||
pageProps.configVariables
|
||||
pageProps.configVariables,
|
||||
);
|
||||
|
||||
useEffect(() => {
|
||||
@@ -165,7 +165,7 @@ App.getInitialProps = async ({ ctx }: { ctx: GetServerSidePropsContext }) => {
|
||||
pageProps.route = ctx.req.url;
|
||||
|
||||
const requestLanguage = i18nUtil.getLanguageFromAcceptHeader(
|
||||
ctx.req.headers["accept-language"]
|
||||
ctx.req.headers["accept-language"],
|
||||
);
|
||||
|
||||
pageProps.language = ctx.req.cookies["language"] ?? requestLanguage;
|
||||
|
||||
Reference in New Issue
Block a user