nicolium: unfortunate commit title lmao
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@ -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;
|
||||
|
||||
@ -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}
|
||||
/>
|
||||
|
||||
@ -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 };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user