StatusContent: size --> textSize

This commit is contained in:
Alex Gleason 2023-01-30 13:38:29 -06:00
parent 1169149b83
commit 747cc8c5b9
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
2 changed files with 5 additions and 5 deletions

View File

@ -36,7 +36,7 @@ interface IStatusContent {
onClick?: () => void, onClick?: () => void,
collapsable?: boolean, collapsable?: boolean,
translatable?: boolean, translatable?: boolean,
size?: Sizes, textSize?: Sizes,
} }
/** Renders the text content of a status */ /** Renders the text content of a status */
@ -45,7 +45,7 @@ const StatusContent: React.FC<IStatusContent> = ({
onClick, onClick,
collapsable = false, collapsable = false,
translatable, translatable,
size = 'md', textSize = 'md',
}) => { }) => {
const history = useHistory(); const history = useHistory();
@ -170,7 +170,7 @@ const StatusContent: React.FC<IStatusContent> = ({
direction={direction} direction={direction}
dangerouslySetInnerHTML={content} dangerouslySetInnerHTML={content}
lang={status.language || undefined} lang={status.language || undefined}
size={size} size={textSize}
/>, />,
]; ];
@ -196,7 +196,7 @@ const StatusContent: React.FC<IStatusContent> = ({
direction={direction} direction={direction}
dangerouslySetInnerHTML={content} dangerouslySetInnerHTML={content}
lang={status.language || undefined} lang={status.language || undefined}
size={size} size={textSize}
/>, />,
]; ];

View File

@ -110,8 +110,8 @@ const DetailedStatus: React.FC<IDetailedStatus> = ({
<Stack space={4}> <Stack space={4}>
<StatusContent <StatusContent
size='lg'
status={actualStatus} status={actualStatus}
textSize='lg'
translatable translatable
/> />