Skip to content

Commit

Permalink
Refactor fields to use description prop
Browse files Browse the repository at this point in the history
  • Loading branch information
ivarnakken committed Oct 13, 2023
1 parent 777abf7 commit a2abc2a
Show file tree
Hide file tree
Showing 4 changed files with 138 additions and 203 deletions.
17 changes: 2 additions & 15 deletions app/routes/articles/components/ArticleEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import Icon from 'app/components/Icon';
import Flex from 'app/components/Layout/Flex';
import { ConfirmModal } from 'app/components/Modal/ConfirmModal';
import NavigationTab from 'app/components/NavigationTab';
import Tooltip from 'app/components/Tooltip';
import type { EditingEvent } from 'app/routes/events/utils';
import type { DetailedArticle } from 'app/store/models/Article';
import type { CurrentUser } from 'app/store/models/User';
Expand Down Expand Up @@ -75,20 +74,8 @@ const ArticleEditor = ({
<Flex>
<Field
name="youtubeUrl"
label={
<Flex>
<div>Erstatt cover-bildet med video fra YouTube</div>
<div
style={{
marginLeft: '5px',
}}
>
<Tooltip content="Valgfritt felt. Videoen erstatter ikke coveret i listen over artikler.">
<Icon name="information-circle-outline" size={20} />
</Tooltip>
</div>
</Flex>
}
label="Erstatt cover-bildet med video fra YouTube"
description="Videoen erstatter ikke coveret i listen over artikler"
placeholder="https://www.youtube.com/watch?v=bLHL75H_VEM&t=5"
component={TextInput.Field}
/>
Expand Down
5 changes: 0 additions & 5 deletions app/routes/events/components/EventEditor/EventEditor.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@
color: var(--lego-font-color);
}

.formField {
margin: 1px;
margin-left: 3px;
}

.registrationDeadlineHours {
color: var(--secondary-font-color);
font-size: var(--font-size-sm);
Expand Down

0 comments on commit a2abc2a

Please sign in to comment.