Skip to content

Commit

Permalink
[feat] boostcampwm-2022#85 디바이스 atom 생성
Browse files Browse the repository at this point in the history
- 권한 atom, 종류 atom 생성
- devicePermissionState, devicesState
  • Loading branch information
ktmihs committed Nov 25, 2022
1 parent a21f0cf commit 402df3c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
16 changes: 16 additions & 0 deletions frontend/src/store/atom/deviceSetting.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { atom } from 'recoil';
import { stringObjectType } from '../../types/types';

export const devicePermissionState = atom<boolean>({
key: 'devicePermissionState',
default: false,
});

export const devicesState = atom<stringObjectType>({
key: 'devicesState',
default: {
speaker: 'default',
audio: 'default',
video: 'default',
},
});
4 changes: 4 additions & 0 deletions frontend/src/types/types.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
export type childrenType = {
children: JSX.Element | JSX.Element[];
};

export type stringObjectType = {
[key: string]: string;
};

0 comments on commit 402df3c

Please sign in to comment.