mirror of
https://github.com/lemeow125/Borrowing-TrackerFrontend.git
synced 2025-05-18 20:38:14 +08:00
Added toast notifications
This commit is contained in:
parent
fd4c2e9ad6
commit
0cccaf25f1
5 changed files with 52 additions and 9 deletions
|
@ -13,10 +13,10 @@ export default function Button(props: props) {
|
|||
return (
|
||||
<div>
|
||||
<button
|
||||
onClick={props.onClick}
|
||||
onMouseDown={() => {
|
||||
if (!clicked) {
|
||||
props.onClick;
|
||||
setClicked(true);
|
||||
setClicked(!clicked);
|
||||
}
|
||||
}}
|
||||
onMouseUp={() => setClicked(false)}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue