From 0c1afe7cd02083d90fd2bdf7eea81c874e3c85f8 Mon Sep 17 00:00:00 2001 From: araddcc002 Date: Thu, 22 Feb 2024 17:19:56 +0000 Subject: [PATCH] some small changes --- frontend/pages/index.tsx | 223 ++++++++++++----------- frontend/src/MuiForms/EntitySelector.tsx | 1 + 2 files changed, 114 insertions(+), 110 deletions(-) diff --git a/frontend/pages/index.tsx b/frontend/pages/index.tsx index 7481a6571..c53d1fea8 100644 --- a/frontend/pages/index.tsx +++ b/frontend/pages/index.tsx @@ -3,6 +3,7 @@ import { Box, Button, Chip, + Container, FilledInput, FormControl, IconButton, @@ -81,117 +82,119 @@ function Marketplace() { if (error) return error return ( - - - - - Filter models - - - - - - } - /> - - - - - - - - - type.label)]} - onChange={handleSelectedTypesOnChange} - selectedTags={searchFilterTypeLabels - .filter((label) => selectedTypes.includes(label.key)) - .map((type) => type.label)} - size='small' - /> + + + + + + Filter models + + + + + + } + /> + + + + + + + + + type.label)]} + onChange={handleSelectedTypesOnChange} + selectedTags={searchFilterTypeLabels + .filter((label) => selectedTypes.includes(label.key)) + .map((type) => type.label)} + size='small' + /> + + + + + + + + + +
+ {models.length === 0 && } + {models.map((model, index) => { + return ( + + + + {model.name} + + + + {model.description} + + + {model.tags.slice(0, 10).map((tag) => ( + + ))} + + {index !== models.length - 1 && ( + + )} + + ) + })} +
+
- - - - - - - -
- {models.length === 0 && } - {models.map((model, index) => { - return ( - - - - {model.name} - - - - {model.description} - - - {model.tags.map((tag) => ( - - ))} - - {index !== models.length - 1 && ( - - )} - - ) - })} -
-
-
-
+ ) } diff --git a/frontend/src/MuiForms/EntitySelector.tsx b/frontend/src/MuiForms/EntitySelector.tsx index 755f38d5e..b18e41460 100644 --- a/frontend/src/MuiForms/EntitySelector.tsx +++ b/frontend/src/MuiForms/EntitySelector.tsx @@ -93,6 +93,7 @@ export default function EntitySelector(props: EntitySelectorProps) { isOptionEqualToValue={(option, value) => option.id === value.id} getOptionLabel={(option) => option.id} value={selectedEntities || []} + filterOptions={(x) => x} onChange={handleUserChange} noOptionsText={userListQuery.length < 3 ? 'Please enter at least three characters' : 'No options'} onInputChange={debounceOnInputChange}