chore: update import and tsconfig
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
'use client';
|
||||
|
||||
import { Button } from '@imphnen-frontend-service/shadcn-ui/atoms';
|
||||
import { CallToActionSection } from 'apps/landing/src/payload-types';
|
||||
import { CallToActionSection } from '@/payload-types';
|
||||
import { Button } from '@components/atoms';
|
||||
import { motion, useInView } from 'framer-motion';
|
||||
import { useRef } from 'react';
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
'use client';
|
||||
|
||||
import { CommunitiesSection } from '@/payload-types';
|
||||
import { Button } from '@components/atoms';
|
||||
import { Icon } from '@iconify/react';
|
||||
import { Button } from '@imphnen-frontend-service/shadcn-ui/atoms';
|
||||
import { CommunitiesSection } from 'apps/landing/src/payload-types';
|
||||
import { motion, useInView } from 'framer-motion';
|
||||
import { useRef } from 'react';
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
'use client';
|
||||
|
||||
import { FeaturesSection } from '@/payload-types';
|
||||
import { Icon } from '@iconify/react';
|
||||
import { FeaturesSection } from 'apps/landing/src/payload-types';
|
||||
import { motion, useInView } from 'framer-motion';
|
||||
import { useRef } from 'react';
|
||||
|
||||
|
||||
@@ -1,13 +1,8 @@
|
||||
'use client';
|
||||
|
||||
import {
|
||||
Button,
|
||||
CodeIcon,
|
||||
SparklesIcon,
|
||||
UsersIcon,
|
||||
} from '@imphnen-frontend-service/shadcn-ui/atoms';
|
||||
import { formatCMSImageDataToMedia } from 'apps/landing/src/lib/format';
|
||||
import { HeroSection } from 'apps/landing/src/payload-types';
|
||||
import { formatCMSImageDataToMedia } from '@/lib/format';
|
||||
import { HeroSection } from '@/payload-types';
|
||||
import { Button, CodeIcon, SparklesIcon, UsersIcon } from '@components/atoms';
|
||||
import { motion } from 'framer-motion';
|
||||
import Image from 'next/image';
|
||||
import { Fragment, useEffect, useState } from 'react';
|
||||
@@ -136,7 +131,7 @@ export function Hero(props: HeroSection) {
|
||||
if (!media) return null;
|
||||
return (
|
||||
<Image
|
||||
src={media.url!}
|
||||
src={String(media.url)}
|
||||
alt={media.alt}
|
||||
width={600}
|
||||
height={500}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
'use client';
|
||||
|
||||
import { LearningResourcesSection } from '@/payload-types';
|
||||
import { Button } from '@components/atoms';
|
||||
import { Icon } from '@iconify/react';
|
||||
import { Button } from '@imphnen-frontend-service/shadcn-ui/atoms';
|
||||
import { LearningResourcesSection } from 'apps/landing/src/payload-types';
|
||||
import { motion, useInView } from 'framer-motion';
|
||||
import { useRef } from 'react';
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
'use client';
|
||||
|
||||
import { QuoteIcon } from '@imphnen-frontend-service/shadcn-ui/atoms';
|
||||
import { formatCMSImageDataToMedia } from 'apps/landing/src/lib/format';
|
||||
import { TestimonialsSection } from 'apps/landing/src/payload-types';
|
||||
import { formatCMSImageDataToMedia } from '@/lib/format';
|
||||
import { TestimonialsSection } from '@/payload-types';
|
||||
import { QuoteIcon } from '@components/atoms';
|
||||
import { motion, useInView } from 'framer-motion';
|
||||
import Image from 'next/image';
|
||||
import { useRef } from 'react';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { getGlobalsCallToActionSection } from '../../../services/get-globals-call-to-action-section';
|
||||
import { getGlobalsCommunitiesSection } from '../../../services/get-globals-communitues-section';
|
||||
import { getGlobalsHeroSection } from '../../../services/get-globals-hero-section';
|
||||
import { getGlobalsTestimonialsSection } from '../../../services/get-globals-testimonials-section';
|
||||
import { getGlobalsCallToActionSection } from '@/services/get-globals-call-to-action-section';
|
||||
import { getGlobalsCommunitiesSection } from '@/services/get-globals-communitues-section';
|
||||
import { getGlobalsHeroSection } from '@/services/get-globals-hero-section';
|
||||
import { getGlobalsTestimonialsSection } from '@/services/get-globals-testimonials-section';
|
||||
import { CallToAction } from './_components/call-to-action';
|
||||
import { Community } from './_components/community';
|
||||
import { Hero } from './_components/hero';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
'use client';
|
||||
|
||||
import { cn } from '@imphnen-frontend-service/utils';
|
||||
import { cn } from '@utils/ui';
|
||||
import { ReactNode, useEffect, useState } from 'react';
|
||||
|
||||
export function HeaderWrapper({ children }: { children: ReactNode }) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
'use client';
|
||||
|
||||
import { useMobileMenuStore } from '../../../../stores/mobile-menu-store';
|
||||
import { useMobileMenuStore } from '@/stores/mobile-menu-store';
|
||||
import { DesktopNavigation } from './desktop-navigation';
|
||||
import { HeaderWrapper } from './header-wrapper';
|
||||
import { Logo } from './logo';
|
||||
|
||||
@@ -1,11 +1,7 @@
|
||||
'use client';
|
||||
|
||||
import {
|
||||
Button,
|
||||
MenuIcon,
|
||||
XIcon,
|
||||
} from '@imphnen-frontend-service/shadcn-ui/atoms';
|
||||
import { useMobileMenuStore } from '../../../../stores/mobile-menu-store';
|
||||
import { useMobileMenuStore } from '@/stores/mobile-menu-store';
|
||||
import { Button, MenuIcon, XIcon } from '@components/atoms';
|
||||
|
||||
export function MobileMenuHamburger() {
|
||||
const mobileMenuOpen = useMobileMenuStore((s) => s.mobileMenuOpen);
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
'use client';
|
||||
|
||||
import {
|
||||
Button,
|
||||
MoonIcon,
|
||||
SunIcon,
|
||||
} from '@imphnen-frontend-service/shadcn-ui/atoms';
|
||||
import { Button, MoonIcon, SunIcon } from '@components/atoms';
|
||||
import { useTheme } from 'next-themes';
|
||||
import { useEffect, useState } from 'react';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user