Skip to content

Commit

Permalink
feat: banner UI/UX adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
nunogois committed Oct 24, 2023
1 parent 3ca22c7 commit e9e3173
Showing 1 changed file with 26 additions and 3 deletions.
29 changes: 26 additions & 3 deletions frontend/src/component/admin/banners/BannerModal/BannerForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,14 +126,25 @@ export const BannerForm = ({
<HelpIcon
tooltip={
<StyledTooltip>
<p>Markdown is supported.</p>
<p>
<a
href='https://www.markdownguide.org/basic-syntax/'
target='_blank'
rel='noreferrer'
>
Markdown
</a>{' '}
is supported.
</p>
</StyledTooltip>
}
/>
</StyledInputDescription>
<StyledInput
autoFocus
label='Banner message'
multiline
minRows={2}
value={message}
onChange={(e: ChangeEvent<HTMLInputElement>) =>
setMessage(e.target.value)
Expand Down Expand Up @@ -230,6 +241,9 @@ export const BannerForm = ({
} else {
setLink('');
}
setLinkText('');
setDialogTitle('');
setDialog('');
}}
options={['None', 'Link', 'Dialog'].map((option) => ({
key: option,
Expand Down Expand Up @@ -295,7 +309,16 @@ export const BannerForm = ({
<HelpIcon
tooltip={
<StyledTooltip>
<p>Markdown is supported.</p>
<p>
<a
href='https://www.markdownguide.org/basic-syntax/'
target='_blank'
rel='noreferrer'
>
Markdown
</a>{' '}
is supported.
</p>
</StyledTooltip>
}
/>
Expand Down Expand Up @@ -328,7 +351,7 @@ export const BannerForm = ({
</StyledFieldGroup>
<StyledFieldGroup>
<StyledInputDescription>
Is the banner currently visible to all users?
Is the banner currently enabled?
</StyledInputDescription>
<FormSwitch
checked={enabled}
Expand Down

0 comments on commit e9e3173

Please sign in to comment.