Skip to content

Commit

Permalink
[#312] chore: footer style 수정 (#313)
Browse files Browse the repository at this point in the history
* chore: 폰트 수정

* feat: mockdata fetch

* merge develop

* fix: merge upstream develop

* pull develop

* fix: 글자 ... 되게 수정중

* fix: 사장님 등록페이지 max-people 추가

* feat: 메인페이지 온보딩 추천 api 추가

* fix: 기존 작업한거로 복구

* chore: footer padding 수정
  • Loading branch information
namminimi authored Feb 28, 2024
1 parent bd8f1d9 commit 93be89c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/_components/Footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function Footer() {

return (
<footer
className={`h-133pxr w-full bg-gray200 px-48pxr py-24pxr mobile:h-167pxr ${isMobile && isReserve ? 'hidden' : 'flex'}`}
className={`h-133pxr w-full bg-gray200 px-48pxr py-24pxr mobile:h-167pxr mobile:px-16pxr ${isMobile && isReserve ? 'hidden' : 'flex'}`}
>
<div className='flex-center m-auto w-1440pxr justify-between gap-16pxr mobile:items-start '>
<ul className='text-gray500 font-caption2'>
Expand Down
8 changes: 6 additions & 2 deletions src/app/_components/Header/_components/HeaderDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ import { getUserInfo } from '@/src/app/_data/sign/getUserInfo';
import { setProfileState } from '@/src/app/_utils/profileState';
import { useQuery, useQueryClient } from '@tanstack/react-query';
import Link from 'next/link';
import { usePathname } from 'next/navigation';
import { usePathname, useRouter } from 'next/navigation';
import { useEffect, useState } from 'react';
import HeaderModal from './HeaderModal';
import { setRedirectUrl } from '@/src/app/_slices/redirectUrl';
import { setIsLogin } from '@/src/app/_slices/isLogin';

interface UserOptionsType {
id: number;
list: string;
Expand All @@ -29,7 +30,7 @@ export const USER_OPTIONS: UserOptionsType[] = [

function HeaderDropdown() {
const [isClose, setIsClose] = useState(false);

const router = useRouter();
const pathName = usePathname();
const profile = useAppSelector((state) => state.profile);
const dispatch = useAppDispatch();
Expand Down Expand Up @@ -68,8 +69,11 @@ function HeaderDropdown() {
dispatch(setProfileState(5));
queryClient.removeQueries();
dispatch(setIsLogin(false));
const userId = window.localStorage.getItem('userId');
document.cookie = `userId=${userId}; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT`;
window.localStorage.removeItem('userId');
dispatch(setRedirectUrl('/'));
router.refresh();
e.stopPropagation();
};

Expand Down
1 change: 1 addition & 0 deletions src/app/_data/sign/signin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export const signin = async (signinInfo: FieldValues) => {
const response = await axiosInstance.post(`sign/sign-in`, signinInfo);
if (response && response.status === 200) {
window.localStorage.setItem('userId', response.data.result.userId);
document.cookie = `userId=${response.data.result.userId}; path=/; max-age=3600`;
return null;
}
} catch (error) {
Expand Down

0 comments on commit 93be89c

Please sign in to comment.