mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-04-24 03:00:09 -04:00
fix styles + minor changes (#159)
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
"@storybook/addon-info": "^5.3.19",
|
||||
"@storybook/addon-links": "^5.3.19",
|
||||
"@storybook/addons": "^5.3.19",
|
||||
"@storybook/react": "^6.0.26",
|
||||
"@storybook/react": "^5.3.19",
|
||||
"babel-loader": "^8.1.0",
|
||||
"react-docgen-typescript-loader": "^3.7.2",
|
||||
"react-dom": "^16.13.1",
|
||||
|
||||
@@ -28,8 +28,10 @@ export const theme: Theme = {
|
||||
...chakraTheme.styles,
|
||||
global: {
|
||||
...chakraTheme.styles.global,
|
||||
background: '#1b0d2a',
|
||||
color: 'white',
|
||||
'#__next': {
|
||||
background: 'dark',
|
||||
color: 'white',
|
||||
},
|
||||
},
|
||||
},
|
||||
radii: {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Box, Button, MetaButton, Text } from '@metafam/ds';
|
||||
import { Box, Button, HStack, MetaButton, Text } from '@metafam/ds';
|
||||
import { MetaLink } from 'components/Link';
|
||||
import { Web3Context } from 'contexts/Web3Context';
|
||||
import React, { useCallback, useContext } from 'react';
|
||||
@@ -22,17 +22,19 @@ export const LoginButton: React.FC = () => {
|
||||
<Text fontFamily="body" color="whiteAlpha.700">
|
||||
{formatAddress(address)}
|
||||
</Text>
|
||||
<Box>
|
||||
<MetaLink href="/profile/setup">Setup profile</MetaLink> |{' '}
|
||||
<HStack spacing={2}>
|
||||
<MetaLink href="/profile/setup">Setup profile</MetaLink>
|
||||
<Text color="cyan.400">|</Text>
|
||||
<Button
|
||||
onClick={disconnect}
|
||||
fontFamily="body"
|
||||
color="cyan.400"
|
||||
variant="link"
|
||||
fontWeight="normal"
|
||||
>
|
||||
Disconnect
|
||||
</Button>
|
||||
</Box>
|
||||
</HStack>
|
||||
</Box>
|
||||
) : (
|
||||
<MetaButton size="md" px={8} onClick={handleLoginClick}>
|
||||
|
||||
@@ -7,7 +7,6 @@ import { withUrqlClient } from 'next-urql';
|
||||
import { AppProps } from 'next/app';
|
||||
import Head from 'next/head';
|
||||
|
||||
|
||||
const app: React.FC<AppProps> = ({ pageProps, Component }) => {
|
||||
return (
|
||||
<ChakraProvider theme={MetaTheme}>
|
||||
|
||||
@@ -22,7 +22,7 @@ export const getStaticProps = async () => {
|
||||
personalityTypes,
|
||||
playerTypes,
|
||||
hidePageHeader: true,
|
||||
}
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user