mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-28 18:00:59 -05:00
chore: bump UI library
This commit is contained in:
parent
aad9a30266
commit
f792888268
3 changed files with 17 additions and 16 deletions
|
@ -73,7 +73,7 @@
|
||||||
"@hcaptcha/react-hcaptcha": "^0.3.6",
|
"@hcaptcha/react-hcaptcha": "^0.3.6",
|
||||||
"@insertish/vite-plugin-babel-macros": "^1.0.5",
|
"@insertish/vite-plugin-babel-macros": "^1.0.5",
|
||||||
"@preact/preset-vite": "^2.0.0",
|
"@preact/preset-vite": "^2.0.0",
|
||||||
"@revoltchat/ui": "1.0.72",
|
"@revoltchat/ui": "1.0.74",
|
||||||
"@rollup/plugin-replace": "^2.4.2",
|
"@rollup/plugin-replace": "^2.4.2",
|
||||||
"@styled-icons/boxicons-logos": "^10.38.0",
|
"@styled-icons/boxicons-logos": "^10.38.0",
|
||||||
"@styled-icons/boxicons-regular": "^10.38.0",
|
"@styled-icons/boxicons-regular": "^10.38.0",
|
||||||
|
|
|
@ -147,16 +147,7 @@ const HackAlertThisFileWillBeReplaced = observer(({ channel }: Props) => {
|
||||||
const renderEmoji = useMemo(
|
const renderEmoji = useMemo(
|
||||||
() =>
|
() =>
|
||||||
memo(({ emoji }: { emoji: string }) => (
|
memo(({ emoji }: { emoji: string }) => (
|
||||||
<a
|
<RenderEmoji match={emoji} {...({} as any)} />
|
||||||
onClick={() => {
|
|
||||||
const v = state.draft.get(channel._id);
|
|
||||||
state.draft.set(
|
|
||||||
channel._id,
|
|
||||||
`${v ? `${v} ` : ""}:${emoji}:`,
|
|
||||||
);
|
|
||||||
}}>
|
|
||||||
<RenderEmoji match={emoji} {...({} as any)} />
|
|
||||||
</a>
|
|
||||||
)),
|
)),
|
||||||
[],
|
[],
|
||||||
);
|
);
|
||||||
|
@ -184,11 +175,21 @@ const HackAlertThisFileWillBeReplaced = observer(({ channel }: Props) => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
categories.push({
|
||||||
|
id: "default",
|
||||||
|
name: "Default",
|
||||||
|
emoji: "smiley",
|
||||||
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Picker
|
<Picker
|
||||||
emojis={emojis}
|
emojis={emojis}
|
||||||
categories={categories}
|
categories={categories}
|
||||||
renderEmoji={renderEmoji}
|
renderEmoji={renderEmoji}
|
||||||
|
onSelect={(emoji) => {
|
||||||
|
const v = state.draft.get(channel._id);
|
||||||
|
state.draft.set(channel._id, `${v ? `${v} ` : ""}:${emoji}:`);
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
10
yarn.lock
10
yarn.lock
|
@ -2240,9 +2240,9 @@ __metadata:
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"@revoltchat/ui@npm:1.0.72":
|
"@revoltchat/ui@npm:1.0.74":
|
||||||
version: 1.0.72
|
version: 1.0.74
|
||||||
resolution: "@revoltchat/ui@npm:1.0.72"
|
resolution: "@revoltchat/ui@npm:1.0.74"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@styled-icons/boxicons-logos": ^10.38.0
|
"@styled-icons/boxicons-logos": ^10.38.0
|
||||||
"@styled-icons/boxicons-regular": ^10.38.0
|
"@styled-icons/boxicons-regular": ^10.38.0
|
||||||
|
@ -2256,7 +2256,7 @@ __metadata:
|
||||||
react-virtuoso: ^2.12.0
|
react-virtuoso: ^2.12.0
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
revolt.js: "*"
|
revolt.js: "*"
|
||||||
checksum: 8ca6d68709591a9505cc62089ab42fe887fcd4ceaac81c7f673b41b7be1d850ba852d0c2dc09bb77c8e1bce22b3255ebfbf95922d57aa2c3d2288aacd7819a25
|
checksum: 39a018702de6f72ddc640e5a26417ef560f304626a7a266c8710c75a93c36213ba84e341257b3dc3704dda79309a4738390ebf57d05af339c07e14875d5bf6f5
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
|
@ -3626,7 +3626,7 @@ __metadata:
|
||||||
"@hcaptcha/react-hcaptcha": ^0.3.6
|
"@hcaptcha/react-hcaptcha": ^0.3.6
|
||||||
"@insertish/vite-plugin-babel-macros": ^1.0.5
|
"@insertish/vite-plugin-babel-macros": ^1.0.5
|
||||||
"@preact/preset-vite": ^2.0.0
|
"@preact/preset-vite": ^2.0.0
|
||||||
"@revoltchat/ui": 1.0.72
|
"@revoltchat/ui": 1.0.74
|
||||||
"@rollup/plugin-replace": ^2.4.2
|
"@rollup/plugin-replace": ^2.4.2
|
||||||
"@styled-icons/boxicons-logos": ^10.38.0
|
"@styled-icons/boxicons-logos": ^10.38.0
|
||||||
"@styled-icons/boxicons-regular": ^10.38.0
|
"@styled-icons/boxicons-regular": ^10.38.0
|
||||||
|
|
Loading…
Reference in a new issue