[skip ci] add react linting

This commit is contained in:
Vendicated 2023-10-31 23:43:28 +01:00
parent 522fdcd15d
commit 18fdc33ee7
No known key found for this signature in database
GPG key ID: D66986BAF75ECF18
37 changed files with 884 additions and 97 deletions

View file

@ -21,7 +21,7 @@ import ErrorBoundary from "@components/ErrorBoundary";
import { Devs } from "@utils/constants";
import { openUserProfile } from "@utils/discord";
import definePlugin, { OptionType } from "@utils/types";
import { Avatar, GuildMemberStore, React, RelationshipStore } from "@webpack/common";
import { Avatar, GuildMemberStore, RelationshipStore } from "@webpack/common";
import { User } from "discord-types/general";
const settings = definePluginSettings({
@ -135,7 +135,7 @@ export default definePlugin({
return children.map(c =>
c.type === "strong"
? <TypingUser {...props} user={users[element++]} />
? <TypingUser {...props} user={users[element++]} key={users[element].id} />
: c
);
}