Skip to content

Commit

Permalink
only show combo box if names exist in empty state (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
manolisliolios authored Oct 3, 2024
1 parent cecc619 commit f897638
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions app/src/app/apps/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,15 @@ export default function App() {
title={state.title}
description={state.description}
>
<ComboBox
placeholder="Select a name..."
value={appValue.selectedSuinsName?.nftId}
options={formatNamesForComboBox(suinsNames ?? [])}
setValue={selectSuinsName}
/>
{suinsNames.length > 0 && (
<ComboBox
placeholder="Select a name..."
value={appValue.selectedSuinsName?.nftId}
options={formatNamesForComboBox(suinsNames ?? [])}
setValue={selectSuinsName}
/>
)}

<Button size="lg" variant="outline" asChild className="mt-Large">
<Link href="https://www.suins.io" target="_blank">
{formatNamesForComboBox(suinsNames ?? []).length > 0 && "or"}{" "}
Expand Down

0 comments on commit f897638

Please sign in to comment.