Skip to content

Commit cd0ada3

Browse files
committed
🧹Chore: rearrange someday files
1 parent fc1d79d commit cd0ada3

File tree

16 files changed

+17
-18
lines changed

16 files changed

+17
-18
lines changed

packages/web/src/ducks/events/selectors/draft.selectors.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,21 @@ export const selectDraftActivity = (state: RootState) =>
99
export const selectDraftCategory = (state: RootState) =>
1010
state.events.draft.status?.eventType;
1111

12+
export const selectDraftId = (state: RootState) =>
13+
state.events.draft.event?._id;
14+
1215
export const selectDraftStatus = (state: RootState) =>
1316
state.events.draft.status;
1417

15-
export const selectIsDrafting = (state: RootState) =>
16-
state.events.draft.status?.isDrafting;
17-
1818
export const selectIsDNDing = (state: RootState) =>
1919
state.events.draft.status?.activity === "dnd";
2020

21+
export const selectIsDrafting = (state: RootState) =>
22+
state.events.draft.status?.isDrafting;
23+
2124
export const selectIsDraftingExisting = (state: RootState) =>
2225
state.events.draft.event?._id !== undefined;
2326

2427
export const selectIsDraftingSomeday = (state: RootState) =>
2528
state.events.draft.status?.eventType === Categories_Event.SOMEDAY_WEEK ||
2629
state.events.draft.status?.eventType === Categories_Event.SOMEDAY_MONTH;
27-
28-
export const selectDraftId = (state: RootState) =>
29-
state.events.draft.event?._id;

packages/web/src/views/Calendar/Calendar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { DraftProvider } from "./components/Draft/context/DraftProvider";
1212
import { SidebarDraftProvider } from "./components/Draft/sidebar/context/SidebarDraftProvider";
1313
import { Grid } from "./components/Grid/";
1414
import { Header } from "./components/Header";
15-
import { Sidebar } from "./components/Sidebar";
15+
import { Sidebar } from "./components/Sidebar/Sidebar";
1616
import { useDateCalcs } from "./hooks/grid/useDateCalcs";
1717
import { useGridLayout } from "./hooks/grid/useGridLayout";
1818
import { useScroll } from "./hooks/grid/useScroll";

packages/web/src/views/Calendar/components/Event/Grid/GridEventPreview/GridEventPreview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
} from "@web/views/Calendar/hooks/grid/useGridLayout";
1616
import { WeekProps } from "@web/views/Calendar/hooks/useWeek";
1717
import { EVENT_ALLDAY_HEIGHT } from "@web/views/Calendar/layout.constants";
18-
import { SOMEDAY_EVENT_HEIGHT } from "../../../Sidebar/SomedayTab/WeekSection/SomedayEvents/SomedayEvent/styled";
18+
import { SOMEDAY_EVENT_HEIGHT } from "../../../Sidebar/SomedayTab/SomedayEvents/SomedayEvent/styled";
1919
import { StyledGridEventPreview, getItemStyles, layerStyles } from "./styled";
2020

2121
interface Props {

packages/web/src/views/Calendar/components/Sidebar/SomedayTab/MonthSection/MonthSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
Refs_Grid,
1010
} from "@web/views/Calendar/hooks/grid/useGridLayout";
1111
import { WeekProps } from "@web/views/Calendar/hooks/useWeek";
12-
import { SomedayEvents } from "../WeekSection/SomedayEvents/SomedayEvents";
12+
import { SomedayEvents } from "../SomedayEvents/SomedayEvents";
1313
import { SidebarHeader, SidebarSection } from "../styled";
1414

1515
interface Props {

packages/web/src/views/Calendar/components/Sidebar/SomedayTab/WeekSection/SomedayEvents/DraggableSomedayEvent/DraggableSomedayEvent.tsx renamed to packages/web/src/views/Calendar/components/Sidebar/SomedayTab/SomedayEvents/DraggableSomedayEvent/DraggableSomedayEvent.tsx

File renamed without changes.

packages/web/src/views/Calendar/components/Sidebar/SomedayTab/WeekSection/SomedayEvents/DraggableSomedayEvent/DraggableSomedayEvents.tsx renamed to packages/web/src/views/Calendar/components/Sidebar/SomedayTab/SomedayEvents/DraggableSomedayEvent/DraggableSomedayEvents.tsx

File renamed without changes.

packages/web/src/views/Calendar/components/Sidebar/SomedayTab/WeekSection/SomedayEvents/SomedayEvent/SomedayEvent.tsx renamed to packages/web/src/views/Calendar/components/Sidebar/SomedayTab/SomedayEvents/SomedayEvent/SomedayEvent.tsx

File renamed without changes.

packages/web/src/views/Calendar/components/Sidebar/SomedayTab/WeekSection/SomedayEvents/SomedayEvent/styled.ts renamed to packages/web/src/views/Calendar/components/Sidebar/SomedayTab/SomedayEvents/SomedayEvent/styled.ts

File renamed without changes.

packages/web/src/views/Calendar/components/Sidebar/SomedayTab/WeekSection/SomedayEvents/SomedayEventContainer/SomedayEventContainer.tsx renamed to packages/web/src/views/Calendar/components/Sidebar/SomedayTab/SomedayEvents/SomedayEventContainer/SomedayEventContainer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import { Priorities } from "@core/constants/core.constants";
55
import { Categories_Event, Schema_Event } from "@core/types/event.types";
66
import { useDraftForm } from "@web/views/Calendar/components/Draft/hooks/state/useDraftForm";
77
import { useSidebarContext } from "@web/views/Calendar/components/Draft/sidebar/context/useSidebarContext";
8+
import { Setters_Sidebar } from "@web/views/Calendar/components/Draft/sidebar/hooks/useSidebarState";
89
import { SIDEBAR_OPEN_WIDTH } from "@web/views/Calendar/layout.constants";
910
import { SomedayEventForm } from "@web/views/Forms/SomedayEventForm/SomedayEventForm";
1011
import { StyledFloatContainer } from "@web/views/Forms/SomedayEventForm/styled";
11-
import { Setters_Sidebar } from "../../../../../Draft/sidebar/hooks/useSidebarState";
1212
import { SomedayEvent } from "../SomedayEvent/SomedayEvent";
1313

1414
export interface Props {

packages/web/src/views/Calendar/components/Sidebar/SomedayTab/WeekSection/SomedayEvents/SomedayEventContainer/SomedayEventRectangle.tsx renamed to packages/web/src/views/Calendar/components/Sidebar/SomedayTab/SomedayEvents/SomedayEventContainer/SomedayEventRectangle.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { AlignItems, JustifyContent } from "@web/components/Flex/styled";
55
import { FlexDirections } from "@web/components/Flex/styled";
66
import { Text } from "@web/components/Text";
77
import { Props_DraftForm } from "@web/views/Calendar/components/Draft/context/DraftContext";
8-
import { Actions_Sidebar } from "../../../../../Draft/sidebar/hooks/useSidebarActions";
8+
import { Actions_Sidebar } from "@web/views/Calendar/components/Draft/sidebar/hooks/useSidebarActions";
99
import { StyledMigrateArrow, StyledRecurrenceText } from "./styled";
1010

1111
interface Props {

0 commit comments

Comments
 (0)