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 4706ad6 commit 0385a3eCopy full SHA for 0385a3e
src/pages/languages.tsx
@@ -97,8 +97,8 @@ const LanguagesPage = ({ location }: PageProps<Queries.LanguagesPageQuery>) => {
97
value={keyword}
98
placeholder={searchString}
99
onChange={(e) => setKeyword(e.target.value)}
100
- rightElement={
101
- keyword !== "" && (
+ rightIcon={
+ keyword !== "" ? (
102
<IconButton
103
icon={<MdClose />}
104
onClick={resetKeyword}
@@ -108,7 +108,7 @@ const LanguagesPage = ({ location }: PageProps<Queries.LanguagesPageQuery>) => {
108
variant="icon"
109
_hover={{ svg: { fill: "primary" } }}
110
/>
111
- )
+ ) : undefined
112
}
113
114
</Box>
0 commit comments