Skip to content

Commit

Permalink
Dolly-komponenter fix
Browse files Browse the repository at this point in the history
#publish-libs
  • Loading branch information
stigus committed May 3, 2024
1 parent 7680177 commit 60009b2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions navikt/dolly-komponenter/src/form/index.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { DatePickerFormItem, InputFormItem, SelectFormItem } from './item';
import styled from 'styled-components';

const Form = styled.form`
const Form: any = styled.form`
display: flex;
flex-direction: column;
align-content: space-around;
justify-content: space-between;
`;

const Line = styled.div<{ reverse?: boolean }>`
const Line: any = styled.div<{ reverse?: boolean }>`
padding-top: 30px;
display: flex;
flex-direction: ${(props) => (props.reverse ? 'row-reverse' : 'row')};
Expand Down
6 changes: 3 additions & 3 deletions navikt/dolly-komponenter/src/form/item/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ import { Select } from '../../select';
import { DatePicker } from '../../date-picker';
import { TextField } from '@navikt/ds-react';

const InputFormItem = styled(TextField)`
const InputFormItem: any = styled(TextField)`
width: 50%;
padding-right: 10px;
`;

const SelectFormItem = styled(Select)`
const SelectFormItem: any = styled(Select)`
width: 25%;
padding-right: 10px;
`;

const DatePickerFormItem = styled(DatePicker)`
const DatePickerFormItem: any = styled(DatePicker)`
width: 50%;
padding-right: 10px;
`;
Expand Down
2 changes: 1 addition & 1 deletion navikt/dolly-komponenter/src/knapp/Knapp.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import styled from 'styled-components';
import { Button } from '@navikt/ds-react';

const Knapp = styled(Button)`
const Knapp: any = styled(Button)`
align-self: flex-end;
margin-left: 20px;
`;
Expand Down

0 comments on commit 60009b2

Please sign in to comment.