Skip to content

Commit

Permalink
feat(ReplyRequestReason): adjust time info style
Browse files Browse the repository at this point in the history
  • Loading branch information
MrOrz committed Jul 21, 2024
1 parent 3d78309 commit 23bae55
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion components/ReplyRequestReason/ReplyRequestReason.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ const useStyles = makeStyles(theme => ({
reason: {
marginTop: 0,
},
time: {
color: theme.palette.secondary[200],
},
vote: {
borderRadius: 45,
marginRight: 3,
Expand Down Expand Up @@ -134,7 +137,9 @@ function ReplyRequestReason({ replyRequest, articleId }) {
<Box flex={1} className={classes.reasonBody}>
<Box className={classes.header}>
<p className={classes.user}>{authorElem}</p>
<TimeInfo time={replyRequest.updatedAt} />
<TimeInfo time={replyRequest.updatedAt}>
{str => <span className={classes.time}>{str}</span>}
</TimeInfo>
</Box>
<p className={classes.reason}>{replyRequestReason}</p>
<Box display="flex" justifyContent="space-between">
Expand Down

0 comments on commit 23bae55

Please sign in to comment.