mirror of
https://github.com/apotdevin/thunderhub.git
synced 2025-02-21 14:04:03 +01:00
chore: small fixes
This commit is contained in:
parent
c0e1ab6613
commit
1c86a6d453
3 changed files with 19 additions and 12 deletions
|
@ -21,6 +21,7 @@ import {
|
|||
} from '../src/components/stateViews/StateCards';
|
||||
import { toast } from 'react-toastify';
|
||||
import 'react-toastify/dist/ReactToastify.css';
|
||||
import Head from 'next/head';
|
||||
|
||||
toast.configure({ draggable: false });
|
||||
|
||||
|
@ -64,13 +65,18 @@ class MyApp extends App<any> {
|
|||
render() {
|
||||
const { Component, pageProps, apollo } = this.props;
|
||||
return (
|
||||
<ApolloProvider client={apollo}>
|
||||
<ContextProvider>
|
||||
<Wrapper>
|
||||
<Component {...pageProps} />
|
||||
</Wrapper>
|
||||
</ContextProvider>
|
||||
</ApolloProvider>
|
||||
<>
|
||||
<Head>
|
||||
<title>ThunderHub - Lightning Node Manager</title>
|
||||
</Head>
|
||||
<ApolloProvider client={apollo}>
|
||||
<ContextProvider>
|
||||
<Wrapper>
|
||||
<Component {...pageProps} />
|
||||
</Wrapper>
|
||||
</ContextProvider>
|
||||
</ApolloProvider>
|
||||
</>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -37,7 +37,6 @@ export default class MyDocument extends Document {
|
|||
return (
|
||||
<Html>
|
||||
<Head>
|
||||
<title>ThunderHub - Lightning Node Manager</title>
|
||||
<meta
|
||||
name="viewport"
|
||||
content="initial-scale=1.0, width=device-width"
|
||||
|
|
|
@ -77,11 +77,13 @@ export const Link = ({
|
|||
);
|
||||
}
|
||||
|
||||
const linkProps = {
|
||||
href: `${basePath}${to}`,
|
||||
...(basePath !== '' ? { prefetch: false } : {}),
|
||||
};
|
||||
|
||||
return (
|
||||
<RouterLink
|
||||
href={`${basePath}${to}`}
|
||||
prefetch={basePath === '' ? true : false}
|
||||
>
|
||||
<RouterLink {...linkProps}>
|
||||
<CorrectLink {...props}>{children}</CorrectLink>
|
||||
</RouterLink>
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue