From 7a43f48c95d56850ff90acf5bb3c7f174c15c066 Mon Sep 17 00:00:00 2001 From: Joel Date: Wed, 9 Oct 2024 11:35:07 +0800 Subject: [PATCH] chore: add test page --- web/app/(commonLayout)/plugins/page.tsx | 7 ------- web/app/(commonLayout)/plugins/test/card/page.tsx | 14 ++++++++++++++ web/app/components/plugins/list-item-for-test.tsx | 15 --------------- 3 files changed, 14 insertions(+), 22 deletions(-) create mode 100644 web/app/(commonLayout)/plugins/test/card/page.tsx delete mode 100644 web/app/components/plugins/list-item-for-test.tsx diff --git a/web/app/(commonLayout)/plugins/page.tsx b/web/app/(commonLayout)/plugins/page.tsx index e7a5f1d022..5c22853fcd 100644 --- a/web/app/(commonLayout)/plugins/page.tsx +++ b/web/app/(commonLayout)/plugins/page.tsx @@ -1,16 +1,9 @@ import Container from './Container' -import ListItem from '@/app/components/plugins/list-item-for-test' const PluginList = async () => { - const mockList = ['Plugin 1', 'Plugin 2', 'Plugin 3'] return ( <> -
- {mockList.map(item => ( - - ))} -
) } diff --git a/web/app/(commonLayout)/plugins/test/card/page.tsx b/web/app/(commonLayout)/plugins/test/card/page.tsx new file mode 100644 index 0000000000..4c849c41ef --- /dev/null +++ b/web/app/(commonLayout)/plugins/test/card/page.tsx @@ -0,0 +1,14 @@ +import Card from '@/app/components/plugins/card' +const PluginList = async () => { + return ( + <> + + + ) +} + +export const metadata = { + title: 'Plugins - Card', +} + +export default PluginList diff --git a/web/app/components/plugins/list-item-for-test.tsx b/web/app/components/plugins/list-item-for-test.tsx deleted file mode 100644 index a0b7101f02..0000000000 --- a/web/app/components/plugins/list-item-for-test.tsx +++ /dev/null @@ -1,15 +0,0 @@ -import React from 'react' - -type ListItemProps = { - text: string -} - -const ListItem: React.FC = ({ text }) => { - return ( -
-

{text}

-
- ) -} - -export default ListItem