Skip to content

Commit dc7a4a3

Browse files
committed
✨ Migrate components from NextUI to HeroUI and update dependencies
1 parent 572da85 commit dc7a4a3

File tree

11 files changed

+836
-836
lines changed

11 files changed

+836
-836
lines changed

.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/*

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"preview": "vite preview"
1111
},
1212
"dependencies": {
13-
"@nextui-org/react": "^2.6.11",
14-
"@nextui-org/use-theme": "^2.1.1",
13+
"@heroui/react": "2.6.12",
14+
"@heroui/use-theme": "2.1.1",
1515
"@tailwindcss/typography": "^0.5.16",
1616
"autoprefixer": "^10.4.20",
1717
"dompurify": "^3.2.3",
@@ -44,4 +44,4 @@
4444
"typescript-eslint": "^8.20.0",
4545
"vite": "^6.0.7"
4646
}
47-
}
47+
}

pnpm-lock.yaml

Lines changed: 796 additions & 796 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Provider.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { NextUIProvider } from '@nextui-org/react'
1+
import { HeroUIProvider } from "@heroui/react"
22
import { ReactNode } from 'react'
33

44
export function Provider({ children }: { children: ReactNode }) {
55
return (
6-
<NextUIProvider className="light-bg-gradiant dark:dark-bg-gradiant overflow-auto overflow-x-hidden">
6+
<HeroUIProvider className="light-bg-gradiant dark:dark-bg-gradiant overflow-auto overflow-x-hidden">
77
{children}
8-
</NextUIProvider>
8+
</HeroUIProvider>
99
)
1010
}

src/components/ContactCard/ContactCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Card, CardHeader, CardBody, CardFooter, Link, Skeleton } from '@nextui-org/react'
1+
import { Card, CardHeader, CardBody, CardFooter, Link, Skeleton } from "@heroui/react"
22
import { FaEnvelope, FaMapMarkerAlt, FaGithub } from 'react-icons/fa'
33
import { BsBuildings, BsTwitterX } from 'react-icons/bs'
44
import { GitHubUserContextProps } from '@/types'

src/components/Languages/Languages.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Card, CardBody, CardHeader, Chip, Skeleton, Tooltip } from '@nextui-org/react'
1+
import { Card, CardBody, CardHeader, Chip, Skeleton, Tooltip } from "@heroui/react"
22
import languageColors from '@/data/colors.json'
33
import { GitHubUserContextProps } from '@/types/index'
44
import langIcons from '@/utils/LangIcons'

src/components/ModalSkills/ModalSkills.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { useState, useEffect } from 'react'
22
import parse from 'html-react-parser'
33
import DOMPurify from 'dompurify'
4-
import { Modal, ModalHeader, ModalBody, ModalFooter, Button, ModalContent } from '@nextui-org/react'
4+
import { Modal, ModalHeader, ModalBody, ModalFooter, Button, ModalContent } from "@heroui/react"
55
import { marked } from 'marked'
66
import 'github-markdown-css/github-markdown.css'
77

src/components/ProfileCard/ProfileCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
Avatar,
77
Tooltip,
88
Skeleton
9-
} from '@nextui-org/react'
9+
} from "@heroui/react"
1010
import { useState } from 'react'
1111
import { ModalSkills } from '@/components'
1212
import { UserRepo } from '@/types'

src/components/ReposCard/ReposCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
Link,
88
Skeleton,
99
Tooltip
10-
} from '@nextui-org/react'
10+
} from "@heroui/react"
1111
import { useEffect, useState, useRef, useCallback, JSX } from 'react'
1212
import languageColors from '@/data/colors.json'
1313
import { FaRegStar } from 'react-icons/fa'

src/components/ThemeSwitch/ThemeSwitch.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { VisuallyHidden, useSwitch, SwitchProps } from '@nextui-org/react'
1+
import { VisuallyHidden, useSwitch, SwitchProps } from "@heroui/react"
22
import { MoonIcon, SunIcon } from '@/assets/Icons'
3-
import { useTheme } from '@nextui-org/use-theme'
3+
import { useTheme } from "@heroui/use-theme"
44
import { useEffect } from 'react'
55

66
const ThemeSwitch = (props: SwitchProps) => {

0 commit comments

Comments
 (0)