Skip to content

Commit

Permalink
fix(hall): adjust join room button color
Browse files Browse the repository at this point in the history
  • Loading branch information
sozonome committed Oct 10, 2023
1 parent 0df14be commit 5bc0844
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 deletions.
21 changes: 9 additions & 12 deletions src/lib/components/hall/components/JoinRoom.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Button, Grid, Heading, useColorModeValue } from '@chakra-ui/react';
import Link from 'next/link';
import { useRouter } from 'next/router';
import type { ChangeEventHandler } from 'react';
import * as React from 'react';

import LinkWrap from '~/lib/components/shared/LinkWrap';
import SpokerInput from '~/lib/components/shared/SpokerInput';
import SpokerWrapperGrid from '~/lib/components/shared/SpokerWrapperGrid';

Expand Down Expand Up @@ -40,17 +40,14 @@ const JoinRoom = () => {
/>
</Grid>

<LinkWrap href={`/join/${roomId}`} isDisabled={isDisabled} passHref>
<Button
as="a"
isDisabled={isDisabled}
alignSelf="flex-end"
backgroundColor="black"
_hover={{ backgroundColor: 'orange.400' }}
>
Let Me in!
</Button>
</LinkWrap>
<Button
as={Link}
href={`/join/${roomId}`}
isDisabled={isDisabled}
alignSelf="flex-end"
>
Let Me in!
</Button>
</SpokerWrapperGrid>
);
};
Expand Down
4 changes: 2 additions & 2 deletions src/lib/pages/hall/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import FullScreenLoading from '~/lib/layout/FullScreenLoading';
import { requestVerificationMail } from '~/lib/services/firebase/auth/requestVerificationMail';
import { useAuth } from '~/lib/stores/auth';

const Home = () => {
const HallPage = () => {
const currentUser = useAuth((state) => state.currentUser);
const [busy, setBusy] = React.useState<boolean>(true);
const [isEmailVerified, setIsEmailVerified] = React.useState<boolean>(false);
Expand Down Expand Up @@ -86,4 +86,4 @@ const Home = () => {
);
};

export default Home;
export default HallPage;

0 comments on commit 5bc0844

Please sign in to comment.