mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-01-25 00:36:23 +00:00
change a bit more
This commit is contained in:
parent
01b9be63b9
commit
3db9a0039c
1 changed files with 21 additions and 22 deletions
|
@ -437,32 +437,31 @@ export function SettingArrayComponent({
|
||||||
>
|
>
|
||||||
<TextInput
|
<TextInput
|
||||||
type="text"
|
type="text"
|
||||||
placeholder="Enter text or ID"
|
placeholder="Enter ID or search for text"
|
||||||
id={cl("input")}
|
id={cl("input")}
|
||||||
onChange={v => setText(v)}
|
onChange={v => setText(v)}
|
||||||
value={text}
|
value={text}
|
||||||
/>
|
/>
|
||||||
{text === "" ? null :
|
{!isNaN(Number(text)) || text === "" ?
|
||||||
!isNaN(Number(text)) ?
|
<Button
|
||||||
<Button
|
size={Button.Sizes.MIN}
|
||||||
size={Button.Sizes.MIN}
|
id={cl("add-button")}
|
||||||
id={cl("add-button")}
|
onClick={handleSubmit}
|
||||||
onClick={handleSubmit}
|
style={{ background: "none" }}
|
||||||
style={{ background: "none" }}
|
disabled={text.length < 18 || text.length > 19}
|
||||||
disabled={text.length < 18 || text.length > 19}
|
>
|
||||||
>
|
<CheckMarkIcon />
|
||||||
<CheckMarkIcon />
|
</Button> :
|
||||||
</Button> :
|
< Button
|
||||||
< Button
|
id={cl("search-button")}
|
||||||
id={cl("search-button")}
|
size={Button.Sizes.MIN}
|
||||||
size={Button.Sizes.MIN}
|
onClick={() => openSearchModal(text)}
|
||||||
onClick={() => openSearchModal(text)}
|
style={
|
||||||
style={
|
{ background: "none" }
|
||||||
{ background: "none" }
|
}
|
||||||
}
|
>
|
||||||
>
|
<SearchIcon />
|
||||||
<SearchIcon />
|
</Button>
|
||||||
</Button>
|
|
||||||
}
|
}
|
||||||
</Flex>
|
</Flex>
|
||||||
</ErrorBoundary>
|
</ErrorBoundary>
|
||||||
|
|
Loading…
Reference in a new issue