diff --git a/client/app/factory/list/components/AddBotCard.tsx b/client/app/factory/list/components/AddBotCard.tsx index 9636ff65..09cb1bc8 100644 --- a/client/app/factory/list/components/AddBotCard.tsx +++ b/client/app/factory/list/components/AddBotCard.tsx @@ -1,22 +1,19 @@ 'use client'; -import { Tables } from '@/types/database.types'; import React from 'react'; -import { Card, Image, CardBody, CardFooter } from '@nextui-org/react'; +import { Card, CardBody } from '@nextui-org/react'; import { useRouter } from 'next/navigation'; -import { AddBotIcon } from "@/public/icons/AddBotIcon"; - -declare type Bot = Tables<'bots'>; +import { AddBotIcon } from '@/public/icons/AddBotIcon'; const BotCard = () => { const router = useRouter(); return ( router.push(`/factory/edit/new`)} > - + diff --git a/client/app/factory/list/components/BotCard.tsx b/client/app/factory/list/components/BotCard.tsx index 93d5b1e8..9b66d00a 100644 --- a/client/app/factory/list/components/BotCard.tsx +++ b/client/app/factory/list/components/BotCard.tsx @@ -78,10 +78,10 @@ const BotCard = (props: { bot: Bot }) => { >
-
+
{ +import { AddBotIcon } from '@/public/icons/AddBotIcon'; +const BotCard = (props: { onPress: Function }) => { return ( { props.onPress(); }} > - + diff --git a/client/components/BotCard.tsx b/client/components/BotCard.tsx index 2f0853eb..28d154d5 100644 --- a/client/components/BotCard.tsx +++ b/client/components/BotCard.tsx @@ -24,10 +24,10 @@ const BotCard = (props: { >
-
+
- petercat + petercat
- {!pathname.includes('/factory/list') && } - {pathname.includes('/factory/list') && ( - - )} + {!pathname.includes('/factory/list') && } + {pathname.includes('/factory/list') && ( + + )} - +
);