-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit 8b529ef Author: Tepohe <[email protected]> Date: Thu Oct 17 16:20:05 2024 +0200 Updated incorrect url-path commit 73999a8 Merge: f0bacbb 1861431 Author: Eric Svebakk <[email protected]> Date: Thu Oct 17 16:11:36 2024 +0200 git push origin developmentMerge branch 'Sebbben-featureBetterRegisterFeedback' into development Handled merge-conflict for pr/64 commit 1861431 Merge: f0bacbb cd922ac Author: Tepohe <[email protected]> Date: Thu Oct 17 16:08:02 2024 +0200 Handled merge-conflict commit f0bacbb Merge: d26bd3f d198b94 Author: Eric Svebakk <[email protected]> Date: Thu Oct 17 15:46:05 2024 +0200 Merge pull request #75 from Borgarsy/feature-halloween-theme Temporary Halloween theme commit cd922ac Author: Sebbben <[email protected]> Date: Fri Oct 11 10:20:45 2024 +0200 made it so that pressing enter on signin and register page submits the forms commit 56dc570 Author: Sebbben <[email protected]> Date: Fri Oct 11 10:16:44 2024 +0200 removed duplicate login button on successfull registration commit d26bd3f Merge: 0f096c0 c019c46 Author: Eric Svebakk <[email protected]> Date: Thu Oct 10 16:54:40 2024 +0200 Merge pull request #67 from Sebbben/fixNoResultMembershipSearch Fix no result membership search commit c019c46 Author: Sebbben <[email protected]> Date: Sat Oct 5 16:20:01 2024 +0200 Made tables turn to first page when the table content changes with a search commit 0f096c0 Merge: a1ce2ec 4dfd6f8 Author: Tepohe <[email protected]> Date: Thu Oct 10 14:42:19 2024 +0200 Merge branch 'main' into development commit d198b94 Author: Borgar <[email protected]> Date: Tue Oct 8 15:01:29 2024 +0200 adds halloween theme. commit a1ce2ec Merge: 4f7d813 f06a472 Author: Tepohe <[email protected]> Date: Tue Oct 8 13:53:44 2024 +0200 Merge branch 'pr/53' into development commit f06a472 Author: Sebbben <[email protected]> Date: Mon Oct 7 16:47:03 2024 +0200 Fixed wrong path for nav bar home from pointing to /home to pointing to / commit a715fac Author: Sebbben <[email protected]> Date: Tue Oct 1 17:24:53 2024 +0200 added snackbar to singin page commit 6322071 Merge: 131cc76 ea38e61 Author: Sebbben <[email protected]> Date: Tue Oct 1 17:08:07 2024 +0200 Merged features from featureBetterRegisterFeedback into changes made by pvk05's fixRegisterUserResponse commit 131cc76 Merge: 221a968 eb8b2f2 Author: Philip Knudsen <[email protected]> Date: Tue Oct 1 16:32:52 2024 +0200 Merge branch 'cybernetisk:main' into fixRegisterUserResponse commit 221a968 Author: pvk05 <[email protected]> Date: Sat Sep 28 00:57:24 2024 +0200 moved register response to a snackbar for better visual feedback commit ea38e61 Author: Sebbben <[email protected]> Date: Fri Sep 27 23:41:22 2024 +0200 added loading indicator to singin page as well commit 8a3d2de Author: pvk05 <[email protected]> Date: Fri Sep 27 23:14:48 2024 +0200 checks if email includes "@" before registering user commit 3f547cf Author: pvk05 <[email protected]> Date: Fri Sep 27 22:44:11 2024 +0200 fixed response from sendMail function to send correct feedback when failing commit 0b33808 Author: Sebbben <[email protected]> Date: Thu Sep 26 17:07:50 2024 +0200 visual queue when registering user commit 0d154f5 Author: Sebbben <[email protected]> Date: Thu Sep 26 14:40:51 2024 +0200 Renamed some directories to take advantage of nexts routing for more usable url paths Co-Authored-By: Philip Knudsen <[email protected]> Co-Authored-By: Sebbben <[email protected]>
- Loading branch information
1 parent
3a2cabc
commit ebe4c43
Showing
4 changed files
with
178 additions
and
45 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import * as React from 'react'; | ||
import Button from '@mui/material/Button'; | ||
import Snackbar, { SnackbarCloseReason } from '@mui/material/Snackbar'; | ||
import IconButton from '@mui/material/IconButton'; | ||
import CloseIcon from '@mui/icons-material/Close'; | ||
import Alert from '@mui/material/Alert'; | ||
|
||
export default function SnackbarAlert({ open, setOpen, response, severity}) { | ||
|
||
const handleClose = (event, reason) => { | ||
if (reason === 'clickaway') { | ||
return; | ||
} | ||
|
||
setOpen(false); | ||
}; | ||
|
||
return ( | ||
<div> | ||
<Snackbar | ||
open={open} | ||
autoHideDuration={5000} | ||
onClose={handleClose} | ||
anchorOrigin={{ vertical: "bottom", horizontal: "center" }} | ||
> | ||
<Alert | ||
onClose={handleClose} | ||
severity={severity} | ||
variant="filled" | ||
sx={{ width: '100%' }} | ||
> | ||
{response} | ||
</Alert> | ||
</Snackbar> | ||
</div> | ||
); | ||
} |