mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
Feature/Twitter Notification Filters (#147)
Feature: Twitter notification update
This commit is contained in:
15 files changed
+85
-23
No files matched your search
@@ -1,4 +1,6 @@
|
||||
import { atom, DefaultValue, useRecoilState } from 'recoil';
|
||||
import { atom, DefaultValue, SetterOrUpdater, useRecoilState } from 'recoil';
|
||||
|
||||
import { SETTINGS_ALL_TWEETS, SETTING_MENTIONS } from '../../../common/typings/twitter';
|
||||
import config from '../../../config/default.json';
|
||||
import { SettingOption } from '../../../ui/hooks/useContextMenu';
|
||||
|
||||
@@ -32,11 +34,12 @@ export interface IPhoneSettings {
|
||||
ringtoneVol: number;
|
||||
notiSound: SettingOption;
|
||||
notiSoundVol: number;
|
||||
TWITTER_notiFilter: SettingOption<SETTING_MENTIONS | SETTINGS_ALL_TWEETS>;
|
||||
TWITTER_notiSound: SettingOption;
|
||||
TWITTER_notiSoundVol: number;
|
||||
TWITTER_notifyNewFeedTweet: boolean;
|
||||
}
|
||||
|
||||
export const useSettings = () => {
|
||||
export const useSettings = (): [IPhoneSettings, SetterOrUpdater<any>] => {
|
||||
return useRecoilState(settingsState);
|
||||
};
|
||||
Reference in new issue
Block a user