Skip to content

Commit

Permalink
styling; Styling for DashPage #40
Browse files Browse the repository at this point in the history
  • Loading branch information
veeepi committed Apr 15, 2021
1 parent e25812f commit 16cacbd
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/components/atoms/Action.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export default function SessionAction({action, authUser, dataUser}) {
<Typography>{'actual'}</Typography>
<Box className={classes.dataBox}>
<IconButton className={classes.dataButton} disabled={!actionEditMode} onClick={() => {if (qty > 0) {setQty(qty-1)} }}><RemoveCircleTwoToneIcon fontSize="small" className={classes.dataIcon} /></IconButton>
<TextField className={classes.qty} disabled={!actionEditMode} id="qty" label={action.qtyType} value={qty} onChange={(e) => setQty(e.target.value)} />
<TextField className={classes.qty} InputProps={{ className: classes.qty }} disabled={!actionEditMode} id="qty" label={action.qtyType} value={qty} onChange={(e) => setQty(e.target.value)} />
<IconButton className={classes.dataButton} disabled={!actionEditMode} onClick={() => setQty(qty+1)}><AddCircleTwoToneIcon fontSize="small" className={classes.dataIcon} /></IconButton>
</Box>
<Box className={classes.dataBox}>
Expand Down
8 changes: 6 additions & 2 deletions src/containers/SessionDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,12 @@ export default function SessionDetails({authUser, dataUser, session, exitSession
<Box className={classes.sessionDetails}>
<Box className={classes.sessionInfo}>
<Typography>{session.name}</Typography>
<Typography>{session.name}</Typography>
<Typography>{session.name}</Typography>
<Typography>{'Coach: ' + session.coachName}</Typography>
{
session.clientNames.map((name, index) => <Typography key={index}>{name}</Typography>)
}
<Typography>{session.notes}</Typography>

</Box>

<Box className={classes.sessionButtons}>
Expand Down
4 changes: 2 additions & 2 deletions src/containers/SessionListItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ export default function SessionListItem({session, openSession, cancelSession}) {

</CardContent>
<CardContent className={classes.listItemParticipants}>
<Box classname={classes.listItemParticipantsInfo}>
<Box className={classes.listItemParticipantsInfo}>
<Typography className={classes.listItemLabel}>{'By coach: '}</Typography>
<Typography className={classes.listItemCoachName}>{session.coachName}</Typography>
</Box>
<Box classname={classes.listItemParticipantsInfo}>
<Box className={classes.listItemParticipantsInfo}>
<Typography className={classes.listItemLabel}>{'Participating: '}</Typography>
<Typography className={classes.listItemClientCount}>{session.clientIds.length}</Typography>
</Box>
Expand Down
2 changes: 1 addition & 1 deletion src/containers/UserBanner.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { PhotoCamera } from '@material-ui/icons'
import EditIcon from '@material-ui/icons/Edit';
import DoneIcon from '@material-ui/icons/Done';
import ClearIcon from '@material-ui/icons/Clear';
import dashStyles from '../styles/dashStyles';
import { dashStyles } from '../styles/dashStyles';

export default function UserBanner({ dataUser }) {
const classes = dashStyles()
Expand Down
33 changes: 32 additions & 1 deletion src/styles/dashStyles.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,4 +159,35 @@ const dashStyles = makeStyles(() => ({
},
}));

export default dashStyles;
const userListStyles = makeStyles(() => ({
contaner: {
display: 'flex',
flexDirection: 'row',
justifyContent: 'space-between',
},
userData: {
display: 'flex',
flexDirection: 'column',
justifyContent: 'space-between',
},
fullName: {
display: 'flex',
flexDirection: 'row',
justifyContent: 'flex-start',
},
username: {
fontWeight: 'bold',
},
firstName: {
fontStyle: 'italic',
},
lastName: {
fontStyle: 'italic',
},
actions: {

}

}));

export { dashStyles, userListStyles };
6 changes: 3 additions & 3 deletions src/styles/sessionStyles.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,9 @@ const newActionFormStyles = makeStyles(() => ({
padding: 0,
},
qty: {
// color: 'red',
// textAlign: 'center',
// fontSize: '40px',
color: 'red',
textAlign: 'center',
fontSize: '40px',
}

}));
Expand Down

0 comments on commit 16cacbd

Please sign in to comment.