Skip to content

Commit

Permalink
refactor: add reexport for board components
Browse files Browse the repository at this point in the history
  • Loading branch information
chertik77 committed Dec 25, 2024
1 parent 49198cd commit ea3d16c
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/components/App.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import { Route, Routes } from 'react-router-dom'

import { Board } from 'features/kanban/board/components/Board'
import { Board, EmptyBoard } from 'features/kanban/board/components'
import { useGetCurrentUser } from 'features/user/hooks'

import { PrivateRoute, PublicOnlyRoute } from 'components/routes'
import { AuthPage, DashboardPage, HomePage } from 'pages'

import { Pages } from 'config'

import { EmptyBoard } from '../features/kanban/board/components/EmptyBoard'
import { Layout } from './Layout'

export const App = () => {
Expand Down
4 changes: 2 additions & 2 deletions src/features/kanban/board/components/Board.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import * as ScrollArea from '@radix-ui/react-scroll-area'

import { useGetBoardById } from 'features/kanban/board/hooks'
import { BoardColumnsList } from 'features/kanban/column/components/BoardColumnsList'
import { BoardColumnsList } from 'features/kanban/column/components'
import { DragAndDropProvider } from 'features/kanban/dnd/dnd.context'
import { Filters } from 'features/kanban/filters/components/Filters'
import { Filters } from 'features/kanban/filters/components'

import { Loader, Scrollbar } from 'components/ui'
import { useDocumentTitle } from 'hooks'
Expand Down
2 changes: 2 additions & 0 deletions src/features/kanban/board/components/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from './Board.tsx'
export * from './EmptyBoard.tsx'
1 change: 1 addition & 0 deletions src/features/kanban/card/components/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './BoardCard'
2 changes: 1 addition & 1 deletion src/features/kanban/column/components/BoardColumnsItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { SortableContext, verticalListSortingStrategy } from '@dnd-kit/sortable'
import * as ScrollArea from '@radix-ui/react-scroll-area'
import { useModal } from 'react-modal-state'

import { BoardCard } from 'features/kanban/card/components/BoardCard'
import { BoardCard } from 'features/kanban/card/components'
import { NewCardModal } from 'features/kanban/card/components/modals'
import { useCardFilters } from 'features/kanban/card/hooks'
import { useDragAndDrop, useKanbanSortable } from 'features/kanban/dnd/hooks'
Expand Down
1 change: 1 addition & 0 deletions src/features/kanban/column/components/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './BoardColumnsList'
2 changes: 1 addition & 1 deletion src/features/kanban/dnd/dnd.context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
} from '@dnd-kit/core'
import { createPortal } from 'react-dom'

import { BoardCard } from 'features/kanban/card/components/BoardCard'
import { BoardCard } from 'features/kanban/card/components'
import { useCardDragHandlers } from 'features/kanban/card/hooks'
import { BoardColumnsItem } from 'features/kanban/column/components/BoardColumnsItem'
import { useColumnDragHandlers } from 'features/kanban/column/hooks'
Expand Down

0 comments on commit ea3d16c

Please sign in to comment.