devsoc-unsw / devsoc-unsw/structs.sh

Create reusable notification hook/component

Open
#808 0 comments 0 reactions 1 assignee Claimed by @sushmaviswa View on GitHub
health
Dominant language
TypeScript
Stars
40
Forks
9
PR merge metrics
No merged PRs in 30d

Description

- The Snackbar + Alert pattern (success/error toasts) is duplicated across [Saving.tsx](vscode-webview://0idss6uapjj43kcni77caskf01ljue48relso08pbc95q8hmg14o/client/src/components/Visualiser/VisualiserInterface/Saving.tsx) and [CreateLink.tsx](vscode-webview://0idss6uapjj43kcni77caskf01ljue48relso08pbc95q8hmg14o/client/src/components/Visualiser/VisualiserInterface/CreateLink.tsx) with separate state per instance
- Fix: Extract a `useNotification()` hook

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.