Skip to content

Commit

Permalink
[feat] boostcampwm-2022#85 boostcampwm-2022#66 sidebar tab 및 chatting…
Browse files Browse the repository at this point in the history
… atom 생성

- 다른 컴포넌트에서도 접근할 수 있도록 전역 변수로 관리
  • Loading branch information
ktmihs committed Dec 5, 2022
1 parent d4f91a9 commit 14d9c60
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions frontend/src/store/atom/chatting.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { atom } from 'recoil';
import { v1 } from 'uuid';

export const chattingState = atom<string>({
key: `chattingState/${v1()}`,

default: '',
});
8 changes: 8 additions & 0 deletions frontend/src/store/atom/sidebar.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { atom } from 'recoil';
import { v1 } from 'uuid';

export const sidebarState = atom<string>({
key: `sidebarState/${v1()}`,

default: 'friends',
});

0 comments on commit 14d9c60

Please sign in to comment.