Skip to content

Commit

Permalink
modify: TODO追加
Browse files Browse the repository at this point in the history
  • Loading branch information
kensiiwasaki committed Nov 21, 2023
1 parent da8c312 commit 5af5f11
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions app/routes/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,7 @@ import { Button, Title } from "@mantine/core";
import { PrismaClient } from "@prisma/client";
import type { ActionFunction, LoaderFunction } from "@remix-run/node";
import { json } from "@remix-run/node";
import {
Form,
Link,
useActionData,
useLoaderData,
useNavigation,
} from "@remix-run/react";
import { Form, Link, useActionData, useNavigation } from "@remix-run/react";
import { OpenAI } from "openai";
import { NormalPrompt } from "~/util/prompt";

Expand Down Expand Up @@ -69,7 +63,8 @@ export const action: ActionFunction = async (args) => {
};

export default function Index() {
const data = useLoaderData<typeof loader>();
// TODO:データの有無で画面を切り替えようと思った
// const data = useLoaderData<typeof loader>();
const { signOut } = useClerk();
const actionData = useActionData<typeof action>();
const navigation = useNavigation();
Expand All @@ -78,8 +73,6 @@ export default function Index() {
const ingredients = actionData ? actionData.response.ingredients : [];
const instructions = actionData ? actionData.response.instructions : "";

console.log(data);

return (
<>
<SignedIn>
Expand Down

0 comments on commit 5af5f11

Please sign in to comment.