refactor: extract sections
This commit is contained in:
@@ -1,8 +1,17 @@
|
||||
import type { ComponentProps } from 'react'
|
||||
import { CategoryPage } from '../components/CategoryPage'
|
||||
import { CategoryPageHero } from '../sections/CategoryPageHero'
|
||||
import { Vendors } from '../sections/Vendors'
|
||||
|
||||
export type CategoryViewProps = Pick<ComponentProps<typeof CategoryPage>, 'title' | 'description' | 'vendors'>
|
||||
export type CategoryViewProps = {
|
||||
title?: string
|
||||
description?: string
|
||||
} & ComponentProps<typeof Vendors>
|
||||
|
||||
export function CategoryView({ title, description, vendors }: CategoryViewProps) {
|
||||
return <CategoryPage title={title} description={description} vendors={vendors} />
|
||||
return (
|
||||
<div className="min-h-screen bg-gray-50">
|
||||
<CategoryPageHero badge="Каталог решений" title={title} description={description} />
|
||||
<Vendors vendors={vendors} />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { useEffect, useState } from 'react'
|
||||
import { Hero } from '../components/Hero'
|
||||
import { Services } from '../components/Services'
|
||||
import { Solutions } from '../components/Solutions'
|
||||
import { Cases } from '../components/Cases'
|
||||
import { About } from '../components/About'
|
||||
import { Contact } from '../components/Contact'
|
||||
import { Hero } from '../sections/Hero'
|
||||
import { Services } from '../sections/Services'
|
||||
import { Solutions } from '../sections/Solutions'
|
||||
import { Cases } from '../sections/Cases'
|
||||
import { About } from '../sections/About'
|
||||
import { Contact } from '../sections/Contact'
|
||||
import { ContactModal } from '../components/ContactModal'
|
||||
import { scrollToHashTarget } from '../lib/scrollToHash'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user