Skip to content

Commit

Permalink
feat: fixed delete button
Browse files Browse the repository at this point in the history
  • Loading branch information
vladislavkeblysh committed Apr 23, 2024
1 parent 1942b1c commit c99bfe1
Showing 1 changed file with 18 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,26 +96,24 @@ export const VideoSourceWidget = ({
<div className="mt-3">
<FormattedMessage {...messages.fallbackVideoMessage} />
</div>
{fallbackVideos.formValue.length > 0 ? fallbackVideos.formValue.map((videoUrl, index) => {
return (
<Form.Row className="mt-3.5 mx-0 flex-nowrap">
<Form.Control
floatingLabel={intl.formatMessage(messages.fallbackVideoLabel)}
onChange={fallbackVideos.onChange(index)}
value={fallbackVideos.local[index]}
onBlur={fallbackVideos.onBlur(index)}
/>
<IconButtonWithTooltip
tooltipPlacement="top"
tooltipContent={intl.formatMessage(messages.deleteFallbackVideo)}
src={DeleteOutline}
iconAs={Icon}
alt={intl.formatMessage(messages.deleteFallbackVideo)}
onClick={() => deleteFallbackVideo(index)}
/>
</Form.Row>
);
}) : null}
{fallbackVideos.formValue.length > 0 ? fallbackVideos.formValue.map((videoUrl, index) => (
<Form.Row className="mt-3.5 mx-0 flex-nowrap">
<Form.Control
floatingLabel={intl.formatMessage(messages.fallbackVideoLabel)}
onChange={fallbackVideos.onChange(index)}
value={fallbackVideos.local[index]}
onBlur={fallbackVideos.onBlur(index)}
/>
<IconButtonWithTooltip
tooltipPlacement="top"
tooltipContent={intl.formatMessage(messages.deleteFallbackVideo)}
src={DeleteOutline}
iconAs={Icon}
alt={intl.formatMessage(messages.deleteFallbackVideo)}
onClick={() => deleteFallbackVideo(index)}
/>
</Form.Row>
)) : null}
<ActionRow className="mt-4.5">
<Form.Checkbox
checked={allowDownload.local}
Expand Down

0 comments on commit c99bfe1

Please sign in to comment.