mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-04-24 03:00:09 -04:00
* feat: metamask switch network support + fixed dependancy cycle * feat: moved landing to index * feat: updated favicon * fix: fixed landing page issues + scrollSnap * feat: join button * fix: fixed seed script with new prod schema * feat: join button redirects based on user creation date * fix: minor ui bug fixes * feat: connect to mainnet to continue with switch network on metamask * fix: uniform setup screens * fix: fixed XP on dashboard * feat: added start page * fix: fixed issues on landing page * fix: fixed minor issues on dashboard * fix: update idx profile in auth webhook for new players * fix: minor fixes in seed page * fix: player avatar & type * fix: incorporated review comments from @dysbulic & @vidvidvid * fix: more review comments
22 lines
449 B
TypeScript
22 lines
449 B
TypeScript
import { Button, Text } from '@metafam/ds';
|
|
import { useRouter } from 'next/router';
|
|
|
|
export const StartButton: React.FC<{ text: string }> = ({
|
|
text = 'Start Playing',
|
|
}) => {
|
|
const router = useRouter();
|
|
|
|
return (
|
|
<Button
|
|
className="border-grad"
|
|
colorScheme="white"
|
|
rounded="md"
|
|
size="lg"
|
|
minW="8rem"
|
|
onClick={() => router.push('/start')}
|
|
>
|
|
<Text as="span">{text}</Text>
|
|
</Button>
|
|
);
|
|
};
|