-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve alerts and profile editor (#17)
* hide avatar based on screen * update packages * fix error message * setup app store with alerts * improve alerts * setup password change * make update password functional * start moving things to a context * use hook instead * remove email button * create form component * add test * fix avatar
- Loading branch information
1 parent
ad66d06
commit b580b1e
Showing
29 changed files
with
508 additions
and
220 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,18 @@ | ||
'use client' | ||
|
||
import React from 'react' | ||
import Alert from '@/components/Alert' | ||
import { useAlert } from '@/hooks/app' | ||
|
||
const AlertBox: React.FC = () => { | ||
const { isVisible, message, type, duration } = useAlert() | ||
|
||
if (!isVisible || !message || !type || !duration) return null | ||
return ( | ||
<div style={{ zIndex: 9999 }} className={'fixed bottom-8 left-8 w-96 transition-opacity duration-300 ease-in-out'}> | ||
<Alert message={message} type={type} duration={duration} /> | ||
</div> | ||
) | ||
} | ||
|
||
export default AlertBox |
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
Oops, something went wrong.