Update src/plugins/notesSearcher/components/NotesDataModal.tsx

Co-authored-by: dolfies <jeyalfie47@gmail.com>
This commit is contained in:
vishnyanetchereshnya 2024-07-12 07:47:48 +03:00 committed by GitHub
parent f866808e23
commit 4fae539fa4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,17 +1,17 @@
/*
* Vencord, a Discord client mod
* Copyright (c) 2024 Vendicated and contributors
* SPDX-License-Identifier: GPL-3.0-or-later
*/
import { classNameFactory } from "@api/Styles";
/*
* Vencord, a Discord client mod
* Copyright (c) 2024 Vendicated and contributors
* SPDX-License-Identifier: GPL-3.0-or-later
*/
import { classNameFactory } from "@api/Styles";
import {
closeModal, ModalCloseButton, ModalContent, ModalHeader, ModalProps, ModalRoot, openModal
} from "@utils/modal";
import { LazyComponent } from "@utils/react";
import { Button, React, RelationshipStore, Select, Text, TextInput, useCallback, useMemo, useReducer, useState } from "@webpack/common";
import { cacheUsers, getNotes, usersCache as usersCache$1 } from "../data";
} from "@utils/modal";
import { LazyComponent } from "@utils/react";
import { Button, React, RelationshipStore, Select, Text, TextInput, useCallback, useMemo, useReducer, useState } from "@webpack/common";
import { cacheUsers, getNotes, usersCache as usersCache$1 } from "../data";
import NotesDataRow from "./NotesDataRow";
const cl = classNameFactory("vc-notes-searcher-modal-");
@ -98,7 +98,7 @@ export function NotesDataModal({ modalProps, close }: {
return (
<ModalRoot className={cl("root")} {...modalProps}>
<ModalHeader className={cl("header")}>
<Text className={cl("header-text")} variant="heading-lg/semibold" style={{ whiteSpace: "nowrap", width: "fit-content", marginRight: "16px" }}>Notes Data</Text>
<Text className={cl("header-text")} variant="heading-lg/semibold" style={{ whiteSpace: "nowrap", width: "fit-content", marginRight: "16px" }}>User Notes</Text>
<TextInput className={cl("header-input")} value={searchValue.query} onChange={onSearch} placeholder="Filter Notes (ID/Global Name/Username/Notes text)" style={{ width: "100% !important", marginRight: "16px" }} />
<div className={cl("header-user-type")} style={{ minWidth: "160px", marginRight: "16px" }}>
<Select