-
Notifications
You must be signed in to change notification settings - Fork 6
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 #23 from harmonydata/staging
Releasing Staging Branch
- Loading branch information
Showing
10 changed files
with
187 additions
and
44 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
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,19 @@ | ||
import React from "react"; | ||
import { Box, Button } from "@mui/material"; | ||
|
||
function GoogleDriveImport({ filesReceiver, sx }) { | ||
return ( | ||
<Box sx={sx}> | ||
<Button variant="contained" size="large" sx={{ mx: "auto" }}> | ||
<img | ||
style={{ height: "2rem", marginRight: 10 }} | ||
src={require("../img/google-drive.png")} | ||
alt="Google Drive" | ||
/> | ||
Import Forms, Sheets or Documents from Google Drive | ||
</Button> | ||
</Box> | ||
); | ||
} | ||
|
||
export default GoogleDriveImport; |
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 |
---|---|---|
@@ -1,39 +1,36 @@ | ||
import React from 'react'; | ||
import { IconButton, Box } from '@mui/material'; | ||
import { useTheme } from '@mui/material/styles'; | ||
import Brightness4Icon from '@mui/icons-material/Brightness4'; | ||
import Brightness7Icon from '@mui/icons-material/Brightness7'; | ||
import { ColorModeContext } from "../contexts/ColorModeContext" | ||
import React from "react"; | ||
import { IconButton, Box } from "@mui/material"; | ||
import { useTheme } from "@mui/material/styles"; | ||
import Brightness4Icon from "@mui/icons-material/Brightness4"; | ||
import Brightness7Icon from "@mui/icons-material/Brightness7"; | ||
import { ColorModeContext } from "../contexts/ColorModeContext"; | ||
|
||
export default function ThemeToggle() { | ||
const theme = useTheme(); | ||
const colorMode = React.useContext(ColorModeContext); | ||
|
||
return ( | ||
<Box | ||
onClick={colorMode.toggleColorMode} | ||
sx={{ | ||
display: 'flex', | ||
width: '100%', | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
bgcolor: 'background.default', | ||
display: "flex", | ||
width: "100%", | ||
alignItems: "center", | ||
justifyContent: "center", | ||
bgcolor: "background.default", | ||
color: theme.palette.text.primary, | ||
borderRadius: 1, | ||
p: 0, | ||
}} | ||
> | ||
{theme.palette.mode} mode | ||
<IconButton | ||
sx={{ ml: 1 }} | ||
onClick={colorMode.toggleColorMode} | ||
color="inherit" | ||
> | ||
{theme.palette.mode === 'dark' ? ( | ||
<IconButton sx={{ ml: 1 }} color="inherit"> | ||
{theme.palette.mode === "dark" ? ( | ||
<Brightness7Icon /> | ||
) : ( | ||
<Brightness4Icon /> | ||
)} | ||
</IconButton> | ||
</Box> | ||
); | ||
} | ||
} |
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.