-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added icons in routine subscriptions
- Loading branch information
1 parent
1e43206
commit 3348200
Showing
14 changed files
with
100 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,7 @@ const darkModeOptions: OptionsSelectorOptions = [ | |
] | ||
|
||
function changeTheme(theme: any) { | ||
console.log(theme) | ||
ls.set('theme', theme) | ||
applyTheme(theme) | ||
} | ||
|
@@ -154,8 +155,10 @@ function More() { | |
setIsShow(true) | ||
setModalButtons(['Cancel', 'Send Feedback']) | ||
setModalCallbacks([() => { setIsShow(false) }, | ||
() => | ||
() => { | ||
setIsShow(false) | ||
window.open('mailto:[email protected]?subject=Feedback of Routine Application', '_blank') | ||
} | ||
]) | ||
}, | ||
rightArrow: true | ||
|
@@ -185,12 +188,7 @@ function More() { | |
// Scroll to top | ||
topElement.current?.scrollIntoView({ behavior: 'smooth' }) | ||
}, []) | ||
|
||
useEffect(() => { | ||
changeTheme(darkModeSelectedOption) | ||
console.log("Selected", darkModeSelectedOption) | ||
}, [darkModeSelectedOption]) | ||
|
||
|
||
return ( | ||
<div className='screen dark:text-darkText'> | ||
<BottomModal show={isShow} btnTxt={modalButtons} cb={modalCallbacks} > | ||
|
@@ -232,7 +230,10 @@ function More() { | |
<div className="right"><p className='font-[430] text-sm'>Theme</p></div> | ||
</div> | ||
<OptionSelector isOpen={isSelectorOpen} setIsOpen={setIsSelectorOpen} options={darkModeOptions} | ||
setOption={setDarkModeSelectedOption} heading={'Select Theme'} | ||
setOption={(option: string) => { | ||
setDarkModeSelectedOption(option) | ||
changeTheme(option) | ||
}} heading={'Select Theme'} | ||
> | ||
<div onClick={df(() => setIsSelectorOpen(true))} className='appearance-none bg-inputBg dark:bg-darkInputBg p-3 text-sm px-8 text-center outline-none border-none tap rounded-2xl'> | ||
<p className='font-[450]'>{capitalize(darkModeSelectedOption)} Theme</p> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.