From 4cd20b1c021ef84605710277e641d3b9d933aceb Mon Sep 17 00:00:00 2001 From: adhitya nantish Date: Sun, 7 Jan 2024 16:06:50 +0530 Subject: [PATCH] filter fixed --- app/issues/[org]/page.tsx | 27 ++++++++++++++++++++++++--- app/issues/page.tsx | 4 ++-- 2 files changed, 26 insertions(+), 5 deletions(-) diff --git a/app/issues/[org]/page.tsx b/app/issues/[org]/page.tsx index bca8ca6..8ecc98d 100644 --- a/app/issues/[org]/page.tsx +++ b/app/issues/[org]/page.tsx @@ -1,13 +1,34 @@ +"use client" import React from 'react' +import Tile from '@/comps/Tile'; + type Props = { org:String } export default function page({ params }: { params: { org: string } }) { + + const storedString = localStorage.getItem(`orgData-${params.org}`); + const data: any = JSON.parse(storedString); + console.log(data) + + + return ( -
- {params.org} -
+
+ {data.items.map((item) => ( + + + + ))} +
+ ) } \ No newline at end of file diff --git a/app/issues/page.tsx b/app/issues/page.tsx index 7ad438b..cc93b3b 100644 --- a/app/issues/page.tsx +++ b/app/issues/page.tsx @@ -45,11 +45,11 @@ function Filter() {
- {organizations.map((org) => ( - ))}