refactor: move const, types to shared
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { AutoTech } from '@/views';
|
||||
import { ROUTES } from '@core/constants/route';
|
||||
import { ROUTES } from '@shared/const/route';
|
||||
import Breadcrumbs from '@widgets/breadcrumbs/ui';
|
||||
|
||||
const breadcrumbData = [
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
import s from './styles.module.scss';
|
||||
import Image from 'next/image';
|
||||
import dtrLogo from '@public/images/dtr-logo-eagle.png';
|
||||
import { baseMenu, TMenu } from '@core/constants/menu';
|
||||
import { Icons } from '@shared/ui/icon';
|
||||
import Link from 'next/link';
|
||||
import { Icons } from '@shared/ui/icon';
|
||||
import { baseMenu } from '@shared/const/menu';
|
||||
import { TMenu } from '@shared/types/menu';
|
||||
import dtrLogo from '@public/images/dtr-logo-eagle.png';
|
||||
|
||||
function BaseMenu() {
|
||||
const Menu = ({ list }: { list: TMenu }) => {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import s from './styles.module.scss';
|
||||
import { Button, Input, PhoneInput } from '@shared/ui';
|
||||
import Image from 'next/image';
|
||||
import { TExpert } from '@core/types/expert';
|
||||
import { TExpert } from '@/shared/types/expert';
|
||||
import { Button, Input, PhoneInput } from '@shared/ui';
|
||||
|
||||
type ConsultationProps = TExpert;
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import s from './styles.module.scss';
|
||||
import Link from 'next/link';
|
||||
import { TRelatedArticles } from '@core/types/relatedArticles';
|
||||
import { TRelatedArticles } from '@shared/types/relatedArticles';
|
||||
import { CallbackForm } from '@/entities';
|
||||
|
||||
type RelatedArticlesProps = {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import s from './styles.module.scss';
|
||||
import Link from 'next/link';
|
||||
import { Button } from '@shared/ui';
|
||||
import { TSidebar } from '@core/types/sidebar';
|
||||
import { TSidebar } from '@shared/types/sidebar';
|
||||
|
||||
type SidebarProps = TSidebar;
|
||||
|
||||
|
||||
@@ -1,10 +1,5 @@
|
||||
import { ROUTES } from '@core/constants/route';
|
||||
|
||||
export type TMenu = {
|
||||
name: string;
|
||||
link?: string;
|
||||
children?: TMenu;
|
||||
}[];
|
||||
import { TMenu } from '@shared/types/menu';
|
||||
import { ROUTES } from './route';
|
||||
|
||||
export const baseMenu: TMenu = [
|
||||
{
|
||||
5
src/shared/types/menu.ts
Normal file
5
src/shared/types/menu.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export type TMenu = {
|
||||
name: string;
|
||||
link?: string;
|
||||
children?: TMenu;
|
||||
}[];
|
||||
@@ -1,4 +1,4 @@
|
||||
import { TExpert } from '@core/types/expert';
|
||||
import { TExpert } from '@shared/types/expert';
|
||||
import expertPhoto from '@public/images/photo/yancen-yana.png';
|
||||
|
||||
export const expertData: TExpert = {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { TRelatedArticles } from '@core/types/relatedArticles';
|
||||
import { ROUTES } from '@core/constants/route';
|
||||
import { TRelatedArticles } from '@shared/types/relatedArticles';
|
||||
import { ROUTES } from '@shared/const/route';
|
||||
|
||||
export const relatedArticlesData: TRelatedArticles[] = [
|
||||
{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { TSidebar } from '@core/types/sidebar';
|
||||
import { ROUTES } from '@core/constants/route';
|
||||
import { TSidebar } from '@/shared/types/sidebar';
|
||||
import { ROUTES } from '@shared/const/route';
|
||||
|
||||
const sidebarData: TSidebar = {
|
||||
estimate: '3',
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import s from './styles.module.scss';
|
||||
import Link from 'next/link';
|
||||
import { ROUTES } from '@core/constants/route';
|
||||
import Image from 'next/image';
|
||||
import { ROUTES } from '@shared/const/route';
|
||||
import sberImg from '@public/images/sber-domclick.jpg';
|
||||
|
||||
type BreadcrumbsProps = {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import s from './styles.module.scss';
|
||||
import Link from 'next/link';
|
||||
import Image from 'next/image';
|
||||
import { ROUTES, ROUTES_EXTERNAL } from '@core/constants/route';
|
||||
import dtrLogo from '@public/images/logo-dtr-white.png';
|
||||
import { ROUTES, ROUTES_EXTERNAL } from '@shared/const/route';
|
||||
import { Icons } from '@shared/ui/icon';
|
||||
import dtrLogo from '@public/images/logo-dtr-white.png';
|
||||
|
||||
function Footer() {
|
||||
return (
|
||||
|
||||
0
src/widgets/partners/index.ts
Normal file
0
src/widgets/partners/index.ts
Normal file
0
src/widgets/partners/styles.module.scss
Normal file
0
src/widgets/partners/styles.module.scss
Normal file
0
src/widgets/partners/ui.tsx
Normal file
0
src/widgets/partners/ui.tsx
Normal file
Reference in New Issue
Block a user