Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Commit

Permalink
feat(settings): add localize to settings form
Browse files Browse the repository at this point in the history
  • Loading branch information
rhahao committed Jan 26, 2022
1 parent 748d27d commit 5afe43e
Show file tree
Hide file tree
Showing 18 changed files with 2,527 additions and 1,673 deletions.
13 changes: 7 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

55 changes: 30 additions & 25 deletions src/appStates/appCongregation.js
Original file line number Diff line number Diff line change
@@ -1,41 +1,46 @@
import { atom } from "recoil";
import { atom } from 'recoil';

export const congNameState = atom({
key: 'congName',
default: '',
})
key: 'congName',
default: '',
});

export const congNumberState = atom({
key: 'congNumber',
default: '',
})
key: 'congNumber',
default: '',
});

export const congIDState = atom({
key: 'congID',
default: '',
})
key: 'congID',
default: '',
});

export const congPasswordState = atom({
key: 'congPassword',
default: '',
})
key: 'congPassword',
default: '',
});

export const isErrorCongNameState = atom({
key: 'isErrorCongName',
default: false,
})
key: 'isErrorCongName',
default: false,
});

export const isErrorCongNumberState = atom({
key: 'isErrorCongNumber',
default: false,
})
key: 'isErrorCongNumber',
default: false,
});

export const meetingDayState = atom({
key: 'meetingDay',
default: 3,
})
key: 'meetingDay',
default: 3,
});

export const classCountState = atom({
key: 'classCount',
default: 1,
})
key: 'classCount',
default: 1,
});

export const liveClassState = atom({
key: 'liveClass',
default: false,
});
11 changes: 0 additions & 11 deletions src/appStates/appMe.js

This file was deleted.

52 changes: 46 additions & 6 deletions src/appStates/appSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,7 @@ export const isAboutOpenState = atom({
});

export const isLoginOpenState = atom({
key: 'isLoginState',
default: false,
});

export const isLoggedState = atom({
key: 'isLoggedState',
key: 'isLoginOpen',
default: false,
});

Expand Down Expand Up @@ -107,3 +102,48 @@ export const shortDateFormatState = selector({
return format;
},
});

export const isDeleteDbOpenState = atom({
key: 'isDeleteDbOpen',
default: false,
});

export const isBackupDbOpenState = atom({
key: 'isBackupDbOpen',
default: false,
});

export const isBackupOfflineState = atom({
key: 'isBackupOffline',
default: false,
});

export const isBackupOnlineState = atom({
key: 'isBackupOnline',
default: false,
});

export const isRestoreOfflineState = atom({
key: 'isRestoreOffline',
default: false,
});

export const isRestoreOnlineState = atom({
key: 'isRestoreOnline',
default: false,
});

export const backupEncryptedState = atom({
key: 'backupEncrypted',
default: {},
});

export const backupJsonDataState = atom({
key: 'backupJsonData',
default: undefined,
});

export const isUserLoggedState = atom({
key: 'isUserLogged',
default: false,
});
Loading

0 comments on commit 5afe43e

Please sign in to comment.