first commit
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
import React from "react";
|
||||
import Card from "@mui/material/Card";
|
||||
import { Typography } from "@mui/material";
|
||||
import Button from '@mui/material/Button';
|
||||
import { SnackbarProvider, useSnackbar } from 'notistack';
|
||||
|
||||
function MyApp() {
|
||||
const { enqueueSnackbar } = useSnackbar();
|
||||
|
||||
const handleClick = () => {
|
||||
enqueueSnackbar('I love snacks.');
|
||||
};
|
||||
|
||||
const handleClickVariant = (variant) => () => {
|
||||
// variant could be success, error, warning, info, or default
|
||||
enqueueSnackbar('This is a success message!', { variant });
|
||||
};
|
||||
|
||||
return (
|
||||
<React.Fragment>
|
||||
<Button onClick={handleClick}>Show snackbar</Button>
|
||||
<Button onClick={handleClickVariant('success')}>Show success snackbar</Button>
|
||||
</React.Fragment>
|
||||
);
|
||||
}
|
||||
|
||||
export default function ComplementaryProjects() {
|
||||
return (
|
||||
<>
|
||||
<Card
|
||||
sx={{
|
||||
boxShadow: "none",
|
||||
borderRadius: "10px",
|
||||
p: "25px",
|
||||
mb: "15px",
|
||||
}}
|
||||
>
|
||||
<Typography
|
||||
as="h3"
|
||||
sx={{
|
||||
fontSize: 18,
|
||||
fontWeight: 500,
|
||||
mb: '10px'
|
||||
}}
|
||||
>
|
||||
Complementary Projects
|
||||
</Typography>
|
||||
|
||||
<SnackbarProvider maxSnack={3}>
|
||||
<MyApp />
|
||||
</SnackbarProvider>
|
||||
</Card>
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user