-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added download toast optimize chart load skeleton
- Loading branch information
1 parent
420962e
commit 39fa56b
Showing
5 changed files
with
35 additions
and
20 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
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,20 @@ | ||
import { toast } from 'sonner'; | ||
import CheckCircleIcon from '@/icons/Analytics/checkCircleIcon'; | ||
|
||
const CustomToast = () => { | ||
toast('Download complete', { | ||
className: | ||
'bg-blue-600 text-white p-3 rounded-xl max-w-[200px] w-full flex items-center justify-center space-x-2', | ||
duration: 5000, | ||
position: 'bottom-center', | ||
style: { | ||
left: '50%', | ||
transform: 'translateX(10%)', | ||
bottom: '10px', | ||
position: 'fixed', | ||
}, | ||
icon: <CheckCircleIcon width={20} height={20} className="text-white" />, | ||
}); | ||
}; | ||
|
||
export default CustomToast; |