Skip to content

Commit

Permalink
Pr-refactor: move Hstack
Browse files Browse the repository at this point in the history
  • Loading branch information
mnhhd committed Sep 26, 2024
1 parent 0545ab1 commit ac5b9e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
5 changes: 1 addition & 4 deletions src/app/stilling/[id]/superrask-soknad/_components/Form.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {
CheckboxGroup,
ErrorSummary,
Heading,
HStack,
Link as AkselLink,
ReadMore,
Textarea,
Expand Down Expand Up @@ -172,9 +171,7 @@ function Form({ ad, applicationForm, onSubmit, error, validationErrors, isPendin

{error && <ApiErrorMessage apiErrorCode={error} />}

<HStack gap="4" className="mt-12">
<FormButtonBar id={ad._id} isPending={isPending} />
</HStack>
<FormButtonBar id={ad._id} isPending={isPending} />
</form>
);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { ReactElement } from "react";
import { Button } from "@navikt/ds-react";
import { Button, HStack } from "@navikt/ds-react";
import Link from "next/link";

interface FormButtonBarProps {
Expand All @@ -9,7 +9,7 @@ interface FormButtonBarProps {

export function FormButtonBar({ id, isPending }: FormButtonBarProps): ReactElement {
return (
<>
<HStack gap="4" className="mt-12">
<Button variant="primary" type="submit" loading={isPending}>
Send søknad
</Button>
Expand All @@ -18,6 +18,6 @@ export function FormButtonBar({ id, isPending }: FormButtonBarProps): ReactEleme
Avbryt
</Button>
)}
</>
</HStack>
);
}

0 comments on commit ac5b9e8

Please sign in to comment.