Skip to content

Commit

Permalink
Improve XDR Possible Type UX (#1095)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeesunikim authored Oct 10, 2024
1 parent 5b9a8fb commit 2aa53fa
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/components/XdrTypeSelect/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,14 @@ export const XdrTypeSelect = ({ error }: XdrTypeSelectProps) => {
<OptionItem key={`popular-${p}`} option={p} />
),
)}
{guessedTypes ? (
<>
<OptionItem sectionTitle="Possible Types" />
{guessedTypes.map((o) => (
<OptionItem key={`guessed-${o}`} option={o} />
))}
</>
) : null}

<OptionItem sectionTitle="All" />

Expand Down

0 comments on commit 2aa53fa

Please sign in to comment.