Skip to content

Commit 2089f0f

Browse files
committed
Migrate to HeroUI ok
1 parent 1d85d09 commit 2089f0f

20 files changed

Lines changed: 2434 additions & 2330 deletions

.npmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
public-hoist-pattern[]=*@nextui-org/*
1+
public-hoist-pattern[]=*@heroui/*

app/(root)/arrangement/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import EventCardPaginated from "@/app/(root)/arrangement/eventCardPaginated"
33
import { type Metadata } from "next"
44
import CalendarModal from "@/components/modals/calendarModal"
55
import FloatingMenu from "@/components/floatingMenu"
6-
import { Card } from "@nextui-org/card"
6+
import { Card } from "@heroui/card"
77

88
export const metadata: Metadata = {
99
title: "Arrangementer | Root Linjeforening",

app/(root)/providers.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
"use client"
22

3-
import { NextUIProvider } from "@nextui-org/react"
3+
import { HeroUIProvider } from "@heroui/react"
44
import { ThemeProvider } from "next-themes"
55
import { type ReactNode, useEffect } from "react"
66

77
/**
88
* En komponent som inneholder alle providers som skal brukes i nettsiden.
9-
* NextUIProvider er en provider som brukes av NextUI for å style komponenter.
9+
* HeroUIProvider er en provider som brukes av HeroUI for å style komponenter.
1010
* ThemeProvider er en provider som brukes av next-themes for light mode og dark mode.
1111
* @param children Innholdet som skal rendres i komponenten
1212
* @see https://nextui.org/docs/frameworks/nextjs
1313
*/
1414
export const Providers = ({ children }: { children: ReactNode }) => (
15-
<NextUIProvider>
15+
<HeroUIProvider>
1616
<ThemeProvider attribute={"class"} enableSystem>
1717
{children}
1818
</ThemeProvider>
19-
</NextUIProvider>
19+
</HeroUIProvider>
2020
)

components/buttons/button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"use client"
2-
import { Button as _Button, Link } from "@nextui-org/react"
2+
import { Button as _Button, Link } from "@heroui/react"
33
import { LinkIcon } from "@heroicons/react/24/outline"
44
import { defaultIconSize } from "@/components/icons/icon"
55

components/buttons/darkModeToggle.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import { useTheme } from "next-themes"
44
import { MoonIcon, SunIcon } from "@heroicons/react/24/outline"
55
import { useEffect, useState } from "react"
6-
import { Button, ButtonGroup } from "@nextui-org/button"
6+
import { Button, ButtonGroup } from "@heroui/button"
77
import { defaultIconSize } from "@/components/icons/icon"
88

99
const buttons = [

components/cards/infoCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { type ReactNode } from "react"
2-
import { Card, CardBody, CardFooter, CardHeader } from "@nextui-org/card"
2+
import { Card, CardBody, CardFooter, CardHeader } from "@heroui/card"
33

44
interface EventCardProps extends ChildProps {
55
cardTitle: string

components/cards/singleInfoCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { PortableText } from "@portabletext/react"
66
import { components } from "@/sanity/lib/portabletext"
77
import type { TypedObject } from "sanity"
88
import ImageViewer from "@/components/imageViewer"
9-
import { Card, CardBody, CardFooter, CardHeader } from "@nextui-org/card"
9+
import { Card, CardBody, CardFooter, CardHeader } from "@heroui/card"
1010

1111
interface SingleInfoCardProps extends ChildProps {
1212
image?: SanityImageObject

components/divider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"use client"
2-
import { Divider as _Divider } from "@nextui-org/react"
2+
import { Divider as _Divider } from "@heroui/react"
33

44
export const Divider: Component = ({ className }) => (
55
<_Divider className={`mx-auto w-3/4 ${className}`} />

components/dropdown/addToCalendarDropdown.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Dropdown, { type Key } from "@/components/dropdown/dropdown"
33
import { ChevronDownIcon } from "@heroicons/react/24/outline"
44
import { defaultIconSize } from "@/components/icons/icon"
55
import { useMemo, useState } from "react"
6-
import { Tooltip } from "@nextui-org/react"
6+
import { Tooltip } from "@heroui/react"
77

88
type CalendarKey = "google" | "outlook" | "apple" | "ics" | "copy"
99

components/dropdown/dropdown.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
DropdownMenu,
77
DropdownItem,
88
Button,
9-
} from "@nextui-org/react"
9+
} from "@heroui/react"
1010

1111
export type Key = string | number
1212

0 commit comments

Comments
 (0)