styling: Enforced styling across all files (#55)

This commit is contained in:
Taso authored and GitHub committed 2021-01-12 21:31:03 -05:00
1 parent c9b3174505
commit 54daa42454
165 files changed
+1879 -1725

No files matched your search

@@ -1,18 +1,18 @@
import React from "react";
import { useTranslation } from "react-i18next";
import { makeStyles } from "@material-ui/core/styles";
import { Button } from "@material-ui/core";
import React from 'react';
import { useTranslation } from 'react-i18next';
import { makeStyles } from '@material-ui/core/styles';
import { Button } from '@material-ui/core';
const useStyles = makeStyles((theme) => ({
buttons: {
display: "flex",
flexFlow: "row nowrap",
justifyContent: "flex-end",
alignItems: "justify-content",
marginRight: "15px",
display: 'flex',
flexFlow: 'row nowrap',
justifyContent: 'flex-end',
alignItems: 'justify-content',
marginRight: '15px',
},
close: {
marginLeft: "8px",
marginLeft: '8px',
},
}));
@@ -27,23 +27,23 @@ export const ControlButtons = ({
const imagePromptVisible = showImagePrompt && !showEmoji;
const primaryButtonText = imagePromptVisible
? t("APPS_TWITTER_SUBMIT_IMAGE")
: t("APPS_TWITTER_TWEET");
? t('APPS_TWITTER_SUBMIT_IMAGE')
: t('APPS_TWITTER_TWEET');
const showCloseButton = showImagePrompt || showEmoji;
return (
<div className={classes.buttons}>
<Button variant="contained" color="primary" onClick={onPrimaryClick}>
<Button variant='contained' color='primary' onClick={onPrimaryClick}>
{primaryButtonText}
</Button>
{showCloseButton && (
<Button
className={classes.close}
variant="contained"
color="secondary"
variant='contained'
color='secondary'
onClick={onCloseClick}
>
{t("APPS_TWITTER_CLOSE_IMAGE")}
{t('APPS_TWITTER_CLOSE_IMAGE')}
</Button>
)}
</div>