refactor: use @ prefixed imports
This allows to get rid of the path `./../` and use a common way to import components or anything from `src/` directory. IMHO this improves readability by a mile.
This commit is contained in:
parent
bcc4219124
commit
8280fb59d6
9 changed files with 25 additions and 25 deletions
|
|
@ -1,15 +1,15 @@
|
|||
import Head from "next/head";
|
||||
|
||||
import { Header } from "./../components/Header"
|
||||
import { Hero } from "./../components/Hero"
|
||||
import { CallToAction } from './../components/CallToAction'
|
||||
import { Faqs } from './../components/Faqs'
|
||||
import { Footer } from './../components/Footer'
|
||||
import { Pricing } from './../components/Pricing'
|
||||
import { PrimaryFeatures } from './../components/PrimaryFeatures'
|
||||
import { TechStack } from './../components/TechStack'
|
||||
import { Testimonials } from './../components/Testimonials'
|
||||
import { Environment } from './../components/Environment'
|
||||
import { Header } from "@/components/Header"
|
||||
import { Hero } from "@/components/Hero"
|
||||
import { CallToAction } from '@/components/CallToAction'
|
||||
import { Faqs } from '@/components/Faqs'
|
||||
import { Footer } from '@/components/Footer'
|
||||
import { Pricing } from '@/components/Pricing'
|
||||
import { PrimaryFeatures } from '@/components/PrimaryFeatures'
|
||||
import { TechStack } from '@/components/TechStack'
|
||||
import { Testimonials } from '@/components/Testimonials'
|
||||
import { Environment } from '@/components/Environment'
|
||||
|
||||
export default function Home() {
|
||||
return (
|
||||
|
|
|
|||
Reference in a new issue