Commit 69bc598d authored by Zach Pomerantz's avatar Zach Pomerantz Committed by GitHub

feat: display "no results found" message (#3467)

* feat: display when no results

* chore: use body not subhead
parent 7feba045
...@@ -97,7 +97,21 @@ export function TokenSelectDialog({ value, onSelect }: TokenSelectDialogProps) { ...@@ -97,7 +97,21 @@ export function TokenSelectDialog({ value, onSelect }: TokenSelectDialogProps) {
)} )}
<Rule padded /> <Rule padded />
</Column> </Column>
{isLoaded ? <TokenOptions tokens={tokens} onSelect={onSelect} ref={setOptions} /> : <TokenOptionsSkeleton />} {isLoaded ? (
tokens.length ? (
<TokenOptions tokens={tokens} onSelect={onSelect} ref={setOptions} />
) : (
<Column padded>
<Row justify="center">
<ThemedText.Body1 color="secondary">
<Trans>No results found.</Trans>
</ThemedText.Body1>
</Row>
</Column>
)
) : (
<TokenOptionsSkeleton />
)}
</> </>
) )
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment