feat(ui): course unique number copy button (#490)

* feat: add copy icon for course unique ID

* feat: update Button component to support event parameter in onClick handler

* feat: add copy functionality for course unique ID

* refactor: use Text component instead of span

* fix: remove duplicate course number

* fix: remove unnecessary event forwarding

* fix: remove unnecessary boolean type

Co-authored-by: Samuel Gunter <29130894+Samathingamajig@users.noreply.github.com>

* fix: remove double space

Co-authored-by: Samuel Gunter <29130894+Samathingamajig@users.noreply.github.com>

* refactor: reduce clipboard copy delay and use formatted unique ID

* feat: add copy animation to dialog

---------

Co-authored-by: Samuel Gunter <29130894+Samathingamajig@users.noreply.github.com>
Co-authored-by: doprz <52579214+doprz@users.noreply.github.com>
Co-authored-by: nikshitak <nikkikurva@gmail.com>
This commit is contained in:
Ethan L
2025-01-21 00:02:00 -06:00
committed by GitHub
parent 009de62828
commit 501f506677
3 changed files with 95 additions and 12 deletions

View File

@@ -10,7 +10,7 @@ interface Props {
style?: React.CSSProperties;
variant?: 'filled' | 'outline' | 'minimal';
size?: 'regular' | 'small' | 'mini';
onClick?: () => void;
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
icon?: Icon;
iconProps?: IconProps;
disabled?: boolean;