Skip to content

Commit

Permalink
Merge pull request #966 from navikt/bugfix/all-forms-list
Browse files Browse the repository at this point in the history
Fix styling for all-forms list
  • Loading branch information
enstulen authored Jan 12, 2024
2 parents 17ef7a3 + d597b9a commit 1b416b4
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions packages/fyllut/src/components/FormRow.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
import { useAppConfig } from '@navikt/skjemadigitalisering-shared-components';
import { makeStyles, useAppConfig } from '@navikt/skjemadigitalisering-shared-components';
import { FormsResponseForm, navFormUtils } from '@navikt/skjemadigitalisering-shared-domain';

interface FormRowProps {
form: FormsResponseForm;
}

const useStyles = makeStyles({
skjemanummer: {
textWrap: 'nowrap',
paddingRight: '50px',
verticalAlign: 'top',
},
});

const FormRow = ({ form }: FormRowProps) => {
const { config, baseUrl } = useAppConfig();
const styles = useStyles();
const paper = navFormUtils.isSubmissionMethodAllowed('paper', form);
const digital = navFormUtils.isSubmissionMethodAllowed('digital', form);
const ingen = form.properties.innsending === 'INGEN';
Expand All @@ -15,7 +24,7 @@ const FormRow = ({ form }: FormRowProps) => {

return (
<tr>
<td>
<td className={styles.skjemanummer}>
<a href={skjemaPath}>{form.properties.skjemanummer}</a>
</td>
<td>
Expand Down

0 comments on commit 1b416b4

Please sign in to comment.