Skip to content

Commit

Permalink
Refactored the minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Revaycolizer committed Nov 26, 2024
1 parent 8cb3ac0 commit 9cbc74a
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion website/components/code-example.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use client'

import { useEffect, useState } from 'react'
import { motion } from 'motion/react'
import { motion } from 'framer-motion'
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs'
import { codeExamples } from '@/lib/codeExample'
import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter'
Expand Down
2 changes: 1 addition & 1 deletion website/components/cta.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use client'

import { motion } from 'motion/react'
import { motion } from 'framer-motion'
import { Button } from '@/components/ui/button'

export default function CTA() {
Expand Down
2 changes: 1 addition & 1 deletion website/components/hero.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use client'

import { useEffect, useRef } from 'react'
import { motion, useAnimation, useInView } from 'motion/react'
import { motion, useAnimation, useInView } from 'framer-motion'
import { Button } from '@/components/ui/button'
import { ArrowRight, Code2 } from 'lucide-react'
import { AnimatedBackground } from './AnimatedBackground'
Expand Down
2 changes: 1 addition & 1 deletion website/components/landing-page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use client'

import { useEffect } from 'react'
import { motion, useAnimation } from 'motion/react'
import { motion, useAnimation } from 'framer-motion'
import { useInView } from 'react-intersection-observer'
import Header from './header'
import Hero from './hero'
Expand Down
7 changes: 4 additions & 3 deletions website/components/theme-provider.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
'use client'

import { ThemeProvider as NextThemesProvider } from 'next-themes'
import { type ThemeProviderProps } from 'next-themes/dist/types'
import { ThemeProvider as NextThemesProvider } from "next-themes";

type ThemeProviderProps = React.ComponentProps<typeof NextThemesProvider>;

export function ThemeProvider({ children, ...props }: ThemeProviderProps) {
return <NextThemesProvider {...props}>{children}</NextThemesProvider>
return <NextThemesProvider {...props}>{children}</NextThemesProvider>;
}

5 changes: 5 additions & 0 deletions website/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9cbc74a

Please sign in to comment.