We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22b4893 commit e52f3a3Copy full SHA for e52f3a3
src/components/AppGrid.js
@@ -230,18 +230,24 @@ const people = [
230
},
231
];
232
233
+const reportedUsers = people.map((data) => data).filter((data) => data.Flag === 'red');
234
+
235
+console.log(reportedUsers);
236
237
export default function AppGrid() {
238
return (
239
<div
240
style={{ width: "100%", backgroundColor: "white" }}
241
className="h-[100vh]"
242
>
- <DataGrid
- rows={people}
- columns={columns}
- className="bg-[#394150]"
243
- style={{ color: "white" }}
244
- />
+ {reportedUsers !== undefined && (
+ <DataGrid
245
+ rows={reportedUsers}
246
+ columns={columns}
247
+ className="bg-[#394150]"
248
+ style={{ color: "white" }}
249
+ />
250
+ )}
251
</div>
252
);
253
}
0 commit comments