Skip to content

Commit

Permalink
UI fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-bizz committed Jun 28, 2024
1 parent 90aee34 commit 3f10ca1
Showing 1 changed file with 12 additions and 27 deletions.
39 changes: 12 additions & 27 deletions src/components/Tool/Appeal/AddAppealForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,6 @@ const useStyles = makeStyles()((theme: Theme) => ({
width: '150px',
color: 'white',
},
blueBox: {
border: '1px solid',
borderColor: theme.palette.mpdxBlue.main,
borderRadius: 5,
backgroundColor: theme.palette.cruGrayLight.main,
color: theme.palette.mpdxBlue.main,
padding: 10,
},
selectAll: {
color: theme.palette.mpdxBlue.main,
marginLeft: 5,
Expand Down Expand Up @@ -229,8 +221,6 @@ const AddAppealForm: React.FC<AddAppealFormProps> = ({ accountListId }) => {
title="Add Appeal"
style={{
backgroundColor: theme.palette.cruGrayLight.main,
borderBottom: '1px solid',
borderColor: theme.palette.cruGrayMedium.main,
}}
/>
<CardContent>
Expand Down Expand Up @@ -283,7 +273,7 @@ const AddAppealForm: React.FC<AddAppealFormProps> = ({ accountListId }) => {
</Box>
<Box mt={1} mb={1}>
<Grid container spacing={0}>
<Grid item xs={12} md={2}>
<Grid item xs={12} sm={2}>
<Box
display="flex"
flexDirection="column"
Expand All @@ -303,7 +293,7 @@ const AddAppealForm: React.FC<AddAppealFormProps> = ({ accountListId }) => {
/>
</Box>
</Grid>
<Grid item xs={12} md={1}>
<Grid item xs={12} sm={1}>
<Box
display="flex"
alignItems="center"
Expand All @@ -315,7 +305,7 @@ const AddAppealForm: React.FC<AddAppealFormProps> = ({ accountListId }) => {
<Icon path={mdiPlus} size={1} />
</Box>
</Grid>
<Grid item xs={12} md={2}>
<Grid item xs={12} sm={2}>
<Box
display="flex"
flexDirection="column"
Expand All @@ -334,7 +324,7 @@ const AddAppealForm: React.FC<AddAppealFormProps> = ({ accountListId }) => {
/>
</Box>
</Grid>
<Grid item xs={12} md={1}>
<Grid item xs={12} sm={1}>
<Box
display="flex"
alignItems="center"
Expand All @@ -346,7 +336,7 @@ const AddAppealForm: React.FC<AddAppealFormProps> = ({ accountListId }) => {
<Icon path={mdiClose} size={1} />
</Box>
</Grid>
<Grid item xs={12} md={2}>
<Grid item xs={12} sm={2}>
<Box
display="flex"
flexDirection="column"
Expand All @@ -365,7 +355,7 @@ const AddAppealForm: React.FC<AddAppealFormProps> = ({ accountListId }) => {
/>
</Box>
</Grid>
<Grid item xs={12} md={1}>
<Grid item xs={12} sm={1}>
<Box
display="flex"
alignItems="center"
Expand All @@ -377,7 +367,7 @@ const AddAppealForm: React.FC<AddAppealFormProps> = ({ accountListId }) => {
<Icon path={mdiEqual} size={1} />
</Box>
</Grid>
<Grid item xs={12} md={3}>
<Grid item xs={12} sm={3}>
<Box
display="flex"
flexDirection="column"
Expand All @@ -401,14 +391,11 @@ const AddAppealForm: React.FC<AddAppealFormProps> = ({ accountListId }) => {
</Grid>
</Grid>
</Box>
<Box mt={2} mb={1} className={classes.blueBox}>
<Typography variant="body2">
{t(
'You can add contacts to your appeal based on their status and/or tags. You can also add additional contacts individually at a later time.',
)}
</Typography>
</Box>

<Alert severity="info">
{t(
'You can add contacts to your appeal based on their status and/or tags. You can also add additional contacts individually at a later time.',
)}
</Alert>
<Box mt={1} mb={1}>
<Typography display="inline">
{t('Add contacts with the following status(es):')}
Expand All @@ -428,7 +415,6 @@ const AddAppealForm: React.FC<AddAppealFormProps> = ({ accountListId }) => {
{!!contactStatuses && !loadingStatuses && (
<Autocomplete
multiple
autoSelect
autoHighlight
id="tags-standard"
options={contactStatuses.filter(
Expand Down Expand Up @@ -471,7 +457,6 @@ const AddAppealForm: React.FC<AddAppealFormProps> = ({ accountListId }) => {
{contactTagsList && !loadingTags && (
<Autocomplete
multiple
autoSelect
autoHighlight
id="tags-standard"
options={contactTagsList.filter(
Expand Down

0 comments on commit 3f10ca1

Please sign in to comment.