From e8d3cca15ec3a594fe39d2d8f17987f846517b49 Mon Sep 17 00:00:00 2001 From: Mohammed Mohsin <59914433+mdmohsin7@users.noreply.github.com> Date: Thu, 14 Nov 2024 20:14:51 +0530 Subject: [PATCH] use approved-apps endpoint for webapp and minor ui fixes --- frontend/src/app/apps/[id]/page.tsx | 8 ++++---- frontend/src/app/apps/page.tsx | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/frontend/src/app/apps/[id]/page.tsx b/frontend/src/app/apps/[id]/page.tsx index 80e605f41e3..5aef9ece2b2 100644 --- a/frontend/src/app/apps/[id]/page.tsx +++ b/frontend/src/app/apps/[id]/page.tsx @@ -30,7 +30,7 @@ const COST_CONSTANT = 0.05; export default async function PluginDetailView({ params }: { params: { id: string } }) { // const [darkMode, setDarkMode] = useState(false); - var response = await fetch(`${envConfig.API_URL}/plugins?uid=s5rl6e7nk8cc9rn2`); + var response = await fetch(`${envConfig.API_URL}/v1/approved-apps?include_reviews=true`); const plugins = (await response.json()) as Plugin[]; // Get params in a server component @@ -60,7 +60,7 @@ export default async function PluginDetailView({ params }: { params: { id: strin
Back to Apps @@ -84,7 +84,7 @@ export default async function PluginDetailView({ params }: { params: { id: strin
{plugin.name} @@ -111,7 +111,7 @@ export default async function PluginDetailView({ params }: { params: { id: strin
- ${stat.money} + ${stat == undefined ? 0 : stat.money} Total Earned
diff --git a/frontend/src/app/apps/page.tsx b/frontend/src/app/apps/page.tsx index 169c396cf1b..20f51c9b039 100644 --- a/frontend/src/app/apps/page.tsx +++ b/frontend/src/app/apps/page.tsx @@ -97,7 +97,7 @@ export default async function SleekPluginList() { // document.documentElement.classList.remove('dark'); // } // }, [darkMode]); - var response = await fetch(`${envConfig.API_URL}/plugins?uid=s5rl6e7nk8cc9rn2`); + var response = await fetch(`${envConfig.API_URL}/v1/approved-apps?include_reviews=true`); const plugins = (await response.json()) as Plugin[]; @@ -111,7 +111,7 @@ export default async function SleekPluginList() { return (
-

Omi App Marketplace

+

Omi Apps Marketplace

{/*