From 4047136ddba3dd3fb68fe6a670cce4895d47ffb6 Mon Sep 17 00:00:00 2001 From: bouzuya Date: Sat, 25 Mar 2023 08:15:12 +0900 Subject: [PATCH] Move categories.tsx to categories/index.tsx --- .../[id]/{categories.tsx => categories/index.tsx} | 10 +++++----- app/accounts/[id]/index.tsx | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) rename app/accounts/[id]/{categories.tsx => categories/index.tsx} (91%) diff --git a/app/accounts/[id]/categories.tsx b/app/accounts/[id]/categories/index.tsx similarity index 91% rename from app/accounts/[id]/categories.tsx rename to app/accounts/[id]/categories/index.tsx index d3754d9..25d1887 100644 --- a/app/accounts/[id]/categories.tsx +++ b/app/accounts/[id]/categories/index.tsx @@ -2,17 +2,17 @@ import { useSearchParams } from "expo-router"; import { useEffect, useState } from "react"; import { StyleSheet, View } from "react-native"; import { FAB } from "react-native-paper"; -import { CategoryList } from "../../../components/CategoryList"; -import { DeleteCategoryDialog } from "../../../components/DeleteCategoryDialog"; -import { EditCategoryDialog } from "../../../components/EditCategoryDialog"; +import { CategoryList } from "../../../../components/CategoryList"; +import { DeleteCategoryDialog } from "../../../../components/DeleteCategoryDialog"; +import { EditCategoryDialog } from "../../../../components/EditCategoryDialog"; import { Account, createCategory, deleteCategory, restoreAccount, updateCategory, -} from "../../../lib/account"; -import { createEvent, getEvents } from "../../../lib/api"; +} from "../../../../lib/account"; +import { createEvent, getEvents } from "../../../../lib/api"; export default function Categories(): JSX.Element { const params = useSearchParams(); diff --git a/app/accounts/[id]/index.tsx b/app/accounts/[id]/index.tsx index 95bda88..95e503b 100644 --- a/app/accounts/[id]/index.tsx +++ b/app/accounts/[id]/index.tsx @@ -1,7 +1,7 @@ import { Stack } from "expo-router"; import { useState } from "react"; import { BottomNavigation } from "react-native-paper"; -import Categories from "./categories"; +import Categories from "./categories/index"; import Transactions from "./transactions/index"; export default function AccountRoot(): JSX.Element {