Skip to content

Commit

Permalink
bugs and change Category types
Browse files Browse the repository at this point in the history
  • Loading branch information
Kseniya committed May 13, 2024
1 parent fb2eb71 commit 70a7054
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/entities/Category/types/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export interface Category {
name: string
slug: string
branches?: Category[]
root?: Category
root?: string
is_prohibited?: boolean
is_visible_on_main?: boolean
image?: string
Expand Down
2 changes: 1 addition & 1 deletion src/entities/CategoryCard/CategoryCard.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Meta, StoryObj } from '@storybook/react'

import { TCategory } from '@/models/CategoryModel'
import { TCategory } from '@/shared/model/types/CategoryModel'

import card1 from '../../assets/images/categoryCards/img-categories-01-210x263.webp'

Expand Down
2 changes: 1 addition & 1 deletion src/entities/CategoryCard/CategoryCard.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { FC } from 'react'

import { TCategory } from '@/shared/model/types/CategoryModel'
import Paragraph from '@/shared/ui/Paragraph/Paragraph'

import card1 from '../../assets/images/categoryCards/placeholder-1200x800.png'
import { TCategory } from '../../models/CategoryModel'

import styles from './CategoryCard.module.scss'

Expand Down
4 changes: 2 additions & 2 deletions src/shared/model/types/CategoryModel.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
export type TCategory = {
id: number
id?: number
name: string
slug: string
branches?: TCategory[]
root?: string
root?: string | undefined
is_prohibited?: boolean
is_visible_on_main?: boolean
image?: string | null
Expand Down

0 comments on commit 70a7054

Please sign in to comment.