From 4172332da141a7401de54cdb7a051f6ffffe72d7 Mon Sep 17 00:00:00 2001 From: bbland1 <104288486+bbland1@users.noreply.github.com> Date: Sun, 1 Sep 2024 14:03:35 -0400 Subject: [PATCH] moving our auth/unauth routes into new auth/unauth sub directories --- src/views/{ => authenticated}/List.tsx | 6 +++--- src/views/{ => authenticated}/ManageList.tsx | 6 +++--- src/views/index.ts | 6 +++--- src/views/{ => unauthenticated}/PageNotFound.tsx | 0 4 files changed, 9 insertions(+), 9 deletions(-) rename src/views/{ => authenticated}/List.tsx (78%) rename src/views/{ => authenticated}/ManageList.tsx (96%) rename src/views/{ => unauthenticated}/PageNotFound.tsx (100%) diff --git a/src/views/List.tsx b/src/views/authenticated/List.tsx similarity index 78% rename from src/views/List.tsx rename to src/views/authenticated/List.tsx index b81d596..9676c5d 100644 --- a/src/views/List.tsx +++ b/src/views/authenticated/List.tsx @@ -1,7 +1,7 @@ import { useState, useMemo } from "react"; -import { ListItem as ListItemComponent } from "../components/ListItem"; -import { FilterListInput as FilterListComponent } from "../components/FilterListInput"; -import { ListItem } from "../api"; +import { ListItem as ListItemComponent } from "../../components/ListItem"; +import { FilterListInput as FilterListComponent } from "../../components/FilterListInput"; +import { ListItem } from "../../api"; interface Props { data: ListItem[]; diff --git a/src/views/ManageList.tsx b/src/views/authenticated/ManageList.tsx similarity index 96% rename from src/views/ManageList.tsx rename to src/views/authenticated/ManageList.tsx index 1d80b48..18a7dc8 100644 --- a/src/views/ManageList.tsx +++ b/src/views/authenticated/ManageList.tsx @@ -1,9 +1,9 @@ import { ChangeEvent, FormEvent, useState } from "react"; -import { addItem } from "../api/firebase"; -import { validateTrimmedString } from "../utils"; +import { addItem } from "../../api"; +import { validateTrimmedString } from "../../utils"; import toast from "react-hot-toast"; -import ShareListForm from "../components/forms/ShareListForm"; +import ShareListForm from "../../components/forms/ShareListForm"; interface Props { listPath: string | null; diff --git a/src/views/index.ts b/src/views/index.ts index d329f27..26ee7f1 100644 --- a/src/views/index.ts +++ b/src/views/index.ts @@ -1,5 +1,5 @@ -export * from "./ManageList"; +export * from "./authenticated/ManageList"; export * from "./Home"; export * from "./Layout"; -export * from "./List"; -export * from "./PageNotFound"; +export * from "./authenticated/List"; +export * from "./unauthenticated/PageNotFound"; diff --git a/src/views/PageNotFound.tsx b/src/views/unauthenticated/PageNotFound.tsx similarity index 100% rename from src/views/PageNotFound.tsx rename to src/views/unauthenticated/PageNotFound.tsx