Closed hcavarsan closed 4 months ago
The recent updates focus on enhancing notification management across various components by integrating a new CustomToast
component. This component, leveraging Chakra UI, replaces the standard toast notifications with more customizable options. Key changes include the removal of old toast methods and the adoption of the useCustomToast
hook across multiple components, streamlining how notifications are handled and displayed.
File Path | Change Summary |
---|---|
src/assets/theme.tsx |
Removed commented-out line for theme variants. |
src/components/CustomToast/... |
Introduced CustomToast component and useCustomToast hook; default export of CustomToast . |
src/components/KFtray/... |
Integrated useCustomToast ; updated notification handling. |
src/components/PortForwardRow/... src/components/SettingsModal/... src/components/SyncConfigsButton/... |
Replaced useToast with useCustomToast for enhanced notification management. |
src/types/index.ts |
Added CustomToastProps and ShowToastParams interfaces for detailed toast configuration. |
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
feat: improve error handling and create default toast component