feat: Add sessionStore
This commit is contained in:
parent
7d909e1197
commit
14fa4cab3b
@ -10,12 +10,14 @@ import { Button, Switch } from '@nextui-org/react'
|
||||
import { useRecoilState } from 'recoil'
|
||||
import { globalLocaleStore } from '@/store/localeAtom'
|
||||
import { modalContent, modalState } from '@/store/modalAtom'
|
||||
import { sessionStore } from '@/store/commonAtom'
|
||||
|
||||
export default function Login() {
|
||||
const { patch } = useAxios()
|
||||
|
||||
const { getMessage } = useMessage()
|
||||
const [globalLocaleState, setGlbalLocaleState] = useRecoilState(globalLocaleStore)
|
||||
const [sessionState, setSessionState] = useRecoilState(sessionStore)
|
||||
const [isSelected, setIsSelected] = useState(globalLocaleState === 'ko' ? true : false)
|
||||
|
||||
const handleSelected = () => {
|
||||
@ -71,6 +73,23 @@ export default function Login() {
|
||||
email: 't10t@naver.com',
|
||||
pwdInitYn: 'N',
|
||||
})
|
||||
|
||||
setSessionState({
|
||||
userId: 'NEW016610',
|
||||
saleStoreId: null,
|
||||
name: null,
|
||||
mail: null,
|
||||
tel: null,
|
||||
storeId: 'TEMP02',
|
||||
userNm: 'ㅇㅇ6610',
|
||||
userNmKana: '신규사용자 16610',
|
||||
category: '인상6610',
|
||||
telNo: '336610',
|
||||
fax: null,
|
||||
email: 't10t@naver.com',
|
||||
pwdInitYn: 'N',
|
||||
})
|
||||
|
||||
redirect('/')
|
||||
// 임시 로그인 처리 끝
|
||||
}
|
||||
|
||||
@ -4,3 +4,8 @@ export const dimmedStore = atom({
|
||||
key: 'dimmedState',
|
||||
default: false,
|
||||
})
|
||||
|
||||
export const sessionStore = atom({
|
||||
key: 'sessionState',
|
||||
default: {},
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user