1
0
Fork 1
mirror of https://github.com/Vendicated/Vencord.git synced 2025-01-09 17:36:23 +00:00

change a bit more

This commit is contained in:
Elvy 2025-01-06 15:26:26 +01:00
parent 01b9be63b9
commit 3db9a0039c

View file

@ -437,32 +437,31 @@ export function SettingArrayComponent({
>
<TextInput
type="text"
placeholder="Enter text or ID"
placeholder="Enter ID or search for text"
id={cl("input")}
onChange={v => setText(v)}
value={text}
/>
{text === "" ? null :
!isNaN(Number(text)) ?
<Button
size={Button.Sizes.MIN}
id={cl("add-button")}
onClick={handleSubmit}
style={{ background: "none" }}
disabled={text.length < 18 || text.length > 19}
>
<CheckMarkIcon />
</Button> :
< Button
id={cl("search-button")}
size={Button.Sizes.MIN}
onClick={() => openSearchModal(text)}
style={
{ background: "none" }
}
>
<SearchIcon />
</Button>
{!isNaN(Number(text)) || text === "" ?
<Button
size={Button.Sizes.MIN}
id={cl("add-button")}
onClick={handleSubmit}
style={{ background: "none" }}
disabled={text.length < 18 || text.length > 19}
>
<CheckMarkIcon />
</Button> :
< Button
id={cl("search-button")}
size={Button.Sizes.MIN}
onClick={() => openSearchModal(text)}
style={
{ background: "none" }
}
>
<SearchIcon />
</Button>
}
</Flex>
</ErrorBoundary>