Skip to content

Commit

Permalink
🏷️ improve types
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianNymark committed Dec 6, 2023
1 parent f35f893 commit 5ba0f32
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import { useRouter } from "next/router";
import { useId } from "react";
import { Chips, HGrid, Label } from "@navikt/ds-react";
import { capitalize } from "@/utils";
import { GpChipDataRawT } from "../types";
import { GpChipDataT } from "../types";
import styles from "./Chips.module.css";
import ScrollFade from "./ScrollFade";

type ChipsNavProps = {
type: "innholdstype" | "undertema";
data?: GpChipDataRawT["chipData"];
data?: GpChipDataT["chipData"];
slug?: string;
};

Expand Down Expand Up @@ -41,7 +41,7 @@ function ChipNav({ type, data, slug }: ChipsNavProps) {
id={id}
className={cl("overflow-x-scroll flex gap-2 p-1", styles.chips)}
>
{data?.map((entry) => (
{data.map((entry) => (
<li key={entry.title}>
<Chips.Toggle
variant="neutral"
Expand Down

0 comments on commit 5ba0f32

Please sign in to comment.