nicolium: unfortunate commit title lmao

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2026-02-26 20:29:35 +01:00
parent 59ddf4689e
commit 4bebbd8693
3 changed files with 4 additions and 6 deletions

View File

@ -1,5 +1,5 @@
import React, { useState } from 'react';
import { defineMessages, FormattedMessage, IntlShape, useIntl } from 'react-intl';
import { defineMessages, FormattedMessage, useIntl } from 'react-intl';
import Button from '@/components/ui/button';
import Combobox, {
@ -59,7 +59,7 @@ interface IChatComposer extends Pick<
value: string;
onSubmit: () => void;
errorMessage: string | undefined;
onSelectFile: (files: FileList, intl: IntlShape) => void;
onSelectFile: (files: FileList) => void;
resetFileKey: number | null;
resetContentKey: number | null;
attachment?: MediaAttachment | null;

View File

@ -18,7 +18,6 @@ interface IShoutbox {
const Shoutbox: React.FC<IShoutbox> = ({ inputRef, className }) => {
const [content, setContent] = useState<string>('');
const [resetContentKey, setResetContentKey] = useState<number>(fileKeyGen());
const [errorMessage] = useState<string>();
const { mutate: createShoutboxMessage } = useCreateShoutboxMessage();
@ -80,7 +79,6 @@ const Shoutbox: React.FC<IShoutbox> = ({ inputRef, className }) => {
value={content}
onChange={handleContentChange}
onSubmit={sendMessage}
errorMessage={errorMessage}
resetContentKey={resetContentKey}
disabled={!createShoutboxMessage}
/>

View File

@ -92,14 +92,14 @@ const unicodeMapping = compileTime(() => {
for (const value of emojis) {
for (const item of value.skins) {
const { unified, native } = item;
const stripped = stripcodes(unified, native);
const stripped = stripcodes(unified);
result[native] = { unified: stripped, shortcode: value.id };
}
}
for (const [native, [unified, shortcode]] of Object.entries(tweaks)) {
const stripped = stripcodes(unified, native);
const stripped = stripcodes(unified);
result[native] = { unified: stripped, shortcode };
}