Skip to content

Commit

Permalink
styling(tiles): flex direction
Browse files Browse the repository at this point in the history
  • Loading branch information
oyvindgrutle committed Feb 6, 2024
1 parent 052899c commit 6ec284a
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@ import { useQuaySearch } from 'app/(admin)/hooks/useQuaySearch'
import { Button } from '@entur/button'
import { HiddenInput } from 'components/Form/HiddenInput'

function TileSelector({ action }: { action: (data: FormData) => void }) {
function TileSelector({
action,
flexDirection = 'flexRow',
}: {
action: (data: FormData) => void
flexDirection?: 'flexRow' | 'flexColumn'
}) {
const { counties, selectedCounties, setSelectedCounties } =
useCountiesSearch()

Expand All @@ -20,7 +26,7 @@ function TileSelector({ action }: { action: (data: FormData) => void }) {

return (
<form
className="flexRow g-2"
className={`${flexDirection} g-2`}
action={action}
onSubmit={() => {
setSelectedQuay(null)
Expand Down

0 comments on commit 6ec284a

Please sign in to comment.