-
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.
fix(front): fix inconsistencies in notification design
Fixed an issue where the dark mode design was not being applied on the settings page with a unified component.
- Loading branch information
1 parent
2f158c8
commit 8fd0b6d
Showing
5 changed files
with
29 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// @index('./*', f => `export * from '${f.path}'`) | ||
export * from './progress_bar'; | ||
export * from './toaster'; |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { Toaster as Toast, type ToasterProps } from 'react-hot-toast'; | ||
|
||
/** | ||
* Toaster wrapper with default style applied | ||
* # INFO | ||
* This was written for ease of changing the source code. | ||
*/ | ||
export function Toaster(props: Readonly<ToasterProps>) { | ||
return ( | ||
<Toast | ||
position="bottom-right" | ||
reverseOrder={false} | ||
toastOptions={{ | ||
style: { | ||
color: '#fff', | ||
background: '#1a1919e1', | ||
}, | ||
}} | ||
{...props} | ||
/> | ||
); | ||
} |
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