Commit 3afcdfae authored by tom's avatar tom

nav rename

parent a84fd0f2
...@@ -2,7 +2,7 @@ import React from 'react'; ...@@ -2,7 +2,7 @@ import React from 'react';
import { Flex, Link } from '@chakra-ui/react'; import { Flex, Link } from '@chakra-ui/react';
import NextLink from 'next/link'; import NextLink from 'next/link';
const Nav = () => { const AccountNav = () => {
return ( return (
<Flex <Flex
w="250px" w="250px"
...@@ -15,4 +15,4 @@ const Nav = () => { ...@@ -15,4 +15,4 @@ const Nav = () => {
) )
} }
export default Nav; export default AccountNav;
import React from 'react'; import React from 'react';
import { Box, HStack } from '@chakra-ui/react'; import { Box, HStack } from '@chakra-ui/react';
import Nav from '../Nav/Nav'; import AccountNav from '../AccountNav/AccountNav';
interface Props { interface Props {
children: React.ReactNode; children: React.ReactNode;
...@@ -17,7 +17,7 @@ const Page = ({ children }: Props) => { ...@@ -17,7 +17,7 @@ const Page = ({ children }: Props) => {
spacing="12" spacing="12"
alignItems="stretch" alignItems="stretch"
> >
<Nav/> <AccountNav/>
<Box borderRadius="10px" w="100%" overflow="hidden">{ children }</Box> <Box borderRadius="10px" w="100%" overflow="hidden">{ children }</Box>
</HStack> </HStack>
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment