Skip to content

Commit 28b432d

Browse files
committed
migrate to heroUI
1 parent 595366c commit 28b432d

File tree

13 files changed

+11229
-10436
lines changed

13 files changed

+11229
-10436
lines changed

app/page.tsx

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

3-
import { Link } from "@nextui-org/link";
4-
import { Card, CardBody, CardFooter } from "@nextui-org/card";
5-
import { ScrollShadow } from "@nextui-org/scroll-shadow";
3+
import { Link } from "@heroui/link";
4+
import { Card, CardBody, CardFooter } from "@heroui/card";
5+
import { ScrollShadow } from "@heroui/scroll-shadow";
66
import Image from "next/image";
7-
// import { Image } from "@nextui-org/image";
7+
// import { Image } from "@heroui/image";
88

99
import { title, subtitle } from "@/components/primitives";
1010

app/people/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { Link } from "@nextui-org/link";
2-
import { Divider } from "@nextui-org/divider";
1+
import { Link } from "@heroui/link";
2+
import { Divider } from "@heroui/divider";
33
import Image from "next/image";
44

55
import { peopleList, Person } from "@/config/people";
66

7-
// import { Image } from "@nextui-org/image";
7+
// import { Image } from "@heroui/image";
88

99
export default function PeoplePage() {
1010
return (

app/providers.tsx

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

33
import * as React from "react";
4-
import { NextUIProvider } from "@nextui-org/system";
4+
import { HeroUIProvider } from "@heroui/system";
55
import { useRouter } from "next/navigation";
66
import { ThemeProvider as NextThemesProvider } from "next-themes";
77
import { ThemeProviderProps } from "next-themes/dist/types";
@@ -15,8 +15,8 @@ export function Providers({ children, themeProps }: ProvidersProps) {
1515
const router = useRouter();
1616

1717
return (
18-
<NextUIProvider navigate={router.push}>
18+
<HeroUIProvider navigate={router.push}>
1919
<NextThemesProvider {...themeProps}>{children}</NextThemesProvider>
20-
</NextUIProvider>
20+
</HeroUIProvider>
2121
);
2222
}

app/publications/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use client";
22

3-
import { Link } from "@nextui-org/link";
3+
import { Link } from "@heroui/link";
44
import { useSearchParams } from "next/navigation";
55

66
import { publications, Tag } from "@/config/publications";

app/teaching/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Link } from "@nextui-org/link";
1+
import { Link } from "@heroui/link";
22

33
export default function TeachingPage() {
44
return (

components/badges.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Chip } from '@nextui-org/chip';
1+
import { Chip } from "@heroui/chip";
22
import { GithubIcon, ArxivIcon, PaperIcon } from './icons';
33

44

components/counter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"use client";
22

33
import { useState } from "react";
4-
import { Button } from "@nextui-org/button";
4+
import { Button } from "@heroui/button";
55

66
export const Counter = () => {
77
const [count, setCount] = useState(0);

components/navbar.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import {
44
NavbarMenuToggle,
55
NavbarBrand,
66
NavbarItem,
7-
} from "@nextui-org/navbar";
8-
import { Link } from "@nextui-org/link";
9-
import { link as linkStyles } from "@nextui-org/theme";
7+
} from "@heroui/navbar";
8+
import { Link } from "@heroui/link";
9+
import { link as linkStyles } from "@heroui/theme";
1010
import NextLink from "next/link";
1111
import clsx from "clsx";
1212

components/tag.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use client";
22

3-
import { Chip } from "@nextui-org/chip";
3+
import { Chip } from "@heroui/chip";
44
import React from "react";
55

66
import { Tag } from "@/config/publications";

components/theme-switch.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import { FC } from "react";
44
import { VisuallyHidden } from "@react-aria/visually-hidden";
5-
import { SwitchProps, useSwitch } from "@nextui-org/switch";
5+
import { SwitchProps, useSwitch } from "@heroui/switch";
66
import { useTheme } from "next-themes";
77
import { useIsSSR } from "@react-aria/ssr";
88
import clsx from "clsx";

0 commit comments

Comments
 (0)