Skip to content

Commit

Permalink
feat: moved collection action drawer
Browse files Browse the repository at this point in the history
  • Loading branch information
mbret committed Jul 1, 2024
1 parent d5068b5 commit 0465baa
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,20 @@ import {
ThumbUpOutlined,
SyncRounded
} from "@mui/icons-material"
import { ManageCollectionBooksDialog } from "../../../collections/ManageCollectionBooksDialog"
import { useModalNavigationControl } from "../../../navigation/useModalNavigationControl"
import { useSignalValue } from "reactjrx"
import { useRemoveCollection } from "../../../collections/useRemoveCollection"
import {
collectionActionDrawerChangesState,
collectionActionDrawerState
} from "./useCollectionActionsDrawer"
import { useUpdateCollectionBooks } from "../../../collections/useUpdateCollectionBooks"
import { EditCollectionDialog } from "./EditCollectionDialog"
import { useRefreshCollectionMetadata } from "../../../collections/useRefreshCollectionMetadata"
import { useCollection } from "../../../collections/states"
import { differenceInMinutes } from "date-fns"
import { COLLECTION_METADATA_LOCK_MN } from "@oboku/shared"
import { useModalNavigationControl } from "../../navigation/useModalNavigationControl"
import { ManageCollectionBooksDialog } from "../ManageCollectionBooksDialog"
import { useCollection } from "../states"
import { useRefreshCollectionMetadata } from "../useRefreshCollectionMetadata"
import { useRemoveCollection } from "../useRemoveCollection"
import { useUpdateCollectionBooks } from "../useUpdateCollectionBooks"

export const CollectionActionsDrawer: FC<{}> = () => {
const { openedWith: collectionId } = useSignalValue(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import {
Button
} from "@mui/material"
import { useEffect, useState, FC } from "react"
import { useCollection } from "../../../collections/states"
import { useUpdateCollection } from "../../../collections/useUpdateCollection"
import { getMetadataFromCollection } from "../../../collections/getMetadataFromCollection"
import { getMetadataFromCollection } from "../getMetadataFromCollection"
import { useCollection } from "../states"
import { useUpdateCollection } from "../useUpdateCollection"

export const EditCollectionDialog: FC<{
open: boolean
Expand Down
2 changes: 1 addition & 1 deletion packages/web/src/navigation/AppNavigator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import { AuthCallbackScreen } from "../auth/AuthCallbackScreen"
import { SettingsScreen } from "../settings/SettingsScreen"
import { StatisticsScreen } from "../settings/StatisticsScreen"
import { BackToReadingDialog } from "../reading/BackToReadingDialog"
import { CollectionActionsDrawer } from "../library/collections/CollectionActionsDrawer/CollectionActionsDrawer"
import { ProblemsScreen } from "../problems/ProblemsScreen"
import { LibraryBooksScreen } from "../library/LibraryBooksScreen"
import { LibraryCollectionScreen } from "../library/collections/LibraryCollectionScreen"
Expand All @@ -35,6 +34,7 @@ import { useSignalValue } from "reactjrx"
import { authStateSignal } from "../auth/authState"
import { DataSourcesTabNavigator } from "../dataSources/DataSourcesTabNavigator"
import { DataSourcesReportsScreen } from "../dataSources/reports/DataSourcesReportsScreen"
import { CollectionActionsDrawer } from "../collections/CollectionActionsDrawer/CollectionActionsDrawer"

const BottomTabBarRouteWrapper = () => (
<BottomTabBar>
Expand Down

0 comments on commit 0465baa

Please sign in to comment.