-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Daniel Arnauer
committed
Jun 28, 2022
1 parent
fa66624
commit cf5e531
Showing
79 changed files
with
2,289 additions
and
2,725 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
Large diffs are not rendered by default.
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
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
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 |
---|---|---|
@@ -1,47 +1,32 @@ | ||
import { withStyles, withTheme } from "@mui/styles"; | ||
import Typography from "@mui/material/Typography"; | ||
import React from "react"; | ||
|
||
import Typography from "@mui/material/Typography"; | ||
import strings from "../../localizeStrings"; | ||
|
||
const styles = theme => { | ||
return { | ||
subtitle: { | ||
color: theme.palette.grey.dark | ||
}, | ||
caption: { | ||
color: theme.palette.grey.main | ||
} | ||
}; | ||
const BudgetEmptyState = props => { | ||
const { text } = props; | ||
return ( | ||
<table style={{ alignItems: "center" }}> | ||
<tbody> | ||
<tr height="200vh"> | ||
<td max-width="200vw"> | ||
<img | ||
src="/images-for-empty-state/project-budget-empty-state.png" | ||
alt={strings.common.no_budget} | ||
width="150vw" | ||
/> | ||
</td> | ||
<td> | ||
<Typography variant="subtitle1" sx={{ color: theme => theme.palette.grey.dark }}> | ||
{strings.common.no_budget} | ||
</Typography> | ||
<Typography variant="caption" sx={{ color: theme => theme.palette.grey.main }}> | ||
{text} | ||
</Typography> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
); | ||
}; | ||
|
||
const BudgetEmptyState = withTheme( | ||
withStyles(styles)(props => { | ||
const { text, classes } = props; | ||
return ( | ||
<table style={{ alignItems: "center" }}> | ||
<tbody> | ||
<tr height="200vh"> | ||
<td max-width="200vw"> | ||
<img | ||
src="/images-for-empty-state/project-budget-empty-state.png" | ||
alt={strings.common.no_budget} | ||
width="150vw" | ||
/> | ||
</td> | ||
<td> | ||
<Typography variant="subtitle1" className={classes.subtitle}> | ||
{strings.common.no_budget} | ||
</Typography> | ||
<Typography variant="caption" className={classes.caption}> | ||
{text} | ||
</Typography> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
); | ||
}) | ||
); | ||
|
||
export default BudgetEmptyState; |
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
Oops, something went wrong.