-
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates to Choose Resourse menu (#297)
* Updates to Choose Resourse menu * Adds temporary button to render AddResourceModalV2 on mobile and tunes presentation for all buttons and water button content * updated button colors on hover * feat(choose-resource): update icons * Integrates AddResourceModalV2 with Toolbar button * Updates yarn lock * Fixes mix up with foraging and bathroom icons * changes to theme.js * Adjusts top padding on buttons to align to prototype * Updates desktop toolbar to include Add Resource button --------- Co-authored-by: Gabriel Cardona <2278918+gcardonag@users.noreply.github.com> Co-authored-by: Ron Braha <ron.braha@icloud.com>
- Loading branch information
1 parent
d10718c
commit f3fdfa1
Showing
14 changed files
with
3,570 additions
and
3,068 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,40 @@ | ||
import React from 'react'; | ||
import Dialog from '@mui/material/Dialog'; | ||
import ChooseResource from './ChooseResource'; | ||
import useMediaQuery from '@mui/material/useMediaQuery'; | ||
import { useTheme } from '@mui/material/styles'; | ||
import { DialogContent } from '@mui/material'; | ||
import { ReactComponent as CloseIcon } from '../icons/CloseIcon.svg'; | ||
import IconButton from '@mui/material/IconButton'; | ||
|
||
const AddResourceModalV2 = (props) => { | ||
const theme = useTheme(); | ||
const fullScreen = useMediaQuery(theme.breakpoints.down('md')); | ||
|
||
const onClose = () => props.setOpen(false); | ||
|
||
return ( | ||
<> | ||
<Dialog open={props.open} onClose={onClose} fullScreen={fullScreen}> | ||
<IconButton | ||
aria-label="close" | ||
onClick={onClose} | ||
sx={{ | ||
position: 'absolute', | ||
right: 20, | ||
top: 48, | ||
color: theme => theme.palette.grey[500] | ||
}} | ||
size="large" | ||
> | ||
<CloseIcon /> | ||
</IconButton> | ||
<DialogContent> | ||
<ChooseResource setFormStep={() => {}} /> | ||
</DialogContent> | ||
</Dialog> | ||
</> | ||
); | ||
}; | ||
|
||
export default AddResourceModalV2; |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.