Skip to content

Commit

Permalink
Merge pull request #97 from Beside-Potenday/kiyeong
Browse files Browse the repository at this point in the history
feat: Mypage  상단바 탭 왼쪽으로 이동
  • Loading branch information
gogumalatte authored Aug 8, 2024
2 parents 65fe09e + a7cb2e8 commit 8e5b743
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/pages/MyPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ export const MyPage = () => {

const { mailData, mailLoading, mailError } = useGetMail(page, 5, isJob);

useEffect(() => {
window.scrollTo(0, 0);
}, []);

useEffect(() => {
setPage(0);
}, [isJob]);
Expand All @@ -41,7 +45,7 @@ export const MyPage = () => {
<Wrapper>
<LogoWrapper>
<Grid h="100%" templateColumns="1fr 3fr" gap={10}>
<GridItem bg="white" p={4} borderRadius="md" boxShadow="md" alignSelf="flex-start">
<GridItem bg="white" padding="25px 10px" borderRadius="md" alignSelf="flex-start">
<HStack spacing={4}>
<Avatar size="md" name={authInfo?.name} src={authInfo?.picture} />
<VStack align="start" spacing={1}>
Expand All @@ -52,7 +56,7 @@ export const MyPage = () => {
</GridItem>
<GridItem bg="transparent" p={6}>
<VStack align="start" spacing={6} w="100%">
<HStack w="100%" justify="center" borderBottom="1px solid #ffffff">
<HStack w="100%" justify="flex-start" borderBottom="3px solid #ffffff">
<TabButton active={isJob === 'univ'} onClick={() => setIsJob('univ')}>
대학생
</TabButton>
Expand Down

0 comments on commit 8e5b743

Please sign in to comment.