-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from Chimoney/dev
fix/ui cleanup and refactor file
- Loading branch information
Showing
43 changed files
with
160 additions
and
211 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,8 @@ | ||
{ | ||
"extends": "next/core-web-vitals", | ||
"rules": { | ||
"no-unused-vars": "off", | ||
"functional/immutable-data": "off", | ||
"functional/no-class": "off" | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
4 changes: 2 additions & 2 deletions
4
donation-ui/public/manifest.json → open-giving/public/manifest.json
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
File renamed without changes
File renamed without changes
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
26 changes: 13 additions & 13 deletions
26
donation-ui/src/components/DonationForm.js → open-giving/src/components/DonationForm.js
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
10 changes: 5 additions & 5 deletions
10
...tion-ui/src/components/FilterAccordion.js → ...-giving/src/components/FilterAccordion.js
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
2 changes: 1 addition & 1 deletion
2
donation-ui/src/components/Header.js → open-giving/src/components/Header.js
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,66 @@ | ||
import GitHubIcon from '@mui/icons-material/GitHub'; | ||
import LockIcon from '@mui/icons-material/Lock'; | ||
import { Box, Button, Container, IconButton } from '@mui/material'; | ||
import { useTheme } from '@mui/material/styles'; | ||
import React from 'react'; | ||
|
||
const Layout = ({ children, plain = false }) => { | ||
const theme = useTheme(); | ||
|
||
return ( | ||
<Box sx={{ minHeight: '100vh', backgroundColor: 'background.default' }}> | ||
{!plain && ( | ||
<Box | ||
sx={{ | ||
position: 'fixed', | ||
top: 16, | ||
right: 16, | ||
zIndex: 1000, | ||
}} | ||
> | ||
<IconButton | ||
color="primary" | ||
aria-label="github repository" | ||
component="a" | ||
href="https://github.com/Chimoney/non-profit-donations" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
<GitHubIcon /> | ||
</IconButton> | ||
</Box> | ||
)} | ||
{children} | ||
{!plain && ( | ||
<Container | ||
style={{ | ||
textAlign: 'center', | ||
marginTop: '50px', | ||
}} | ||
maxWidth="xl" | ||
> | ||
<Button | ||
variant="text" | ||
disabled | ||
startIcon={<LockIcon sx={{ width: '0.5em' }} color="success" />} | ||
style={{ | ||
color: theme.palette.common.black, | ||
margin: 'auto', | ||
position: 'fixed', | ||
left: 0, | ||
bottom: 0, | ||
width: '100%', | ||
background: theme.palette.background.paper, | ||
zIndex: '1000000', | ||
}} | ||
fullWidth | ||
> | ||
Built with ❤️ by Chimoney | ||
</Button> | ||
</Container> | ||
)} | ||
</Box> | ||
); | ||
}; | ||
|
||
export default Layout; |
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
25 changes: 13 additions & 12 deletions
25
...tion-ui/src/components/NonProfitDialog.js → ...-giving/src/components/NonProfitDialog.js
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
Oops, something went wrong.