mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-29 02:10:59 -05:00
Fix: Certain languages not loading due to bad map.
This commit is contained in:
parent
002d565b3f
commit
57ef8408a6
2 changed files with 6 additions and 1 deletions
|
@ -160,7 +160,7 @@ function Locale({ children, locale }: Props) {
|
|||
|
||||
dayjs["sameElse"] = DATE_FORMATS[date];
|
||||
Object.keys(dayjs)
|
||||
.filter((k) => k !== "defaults")
|
||||
.filter((k) => typeof dayjs[k] === 'string')
|
||||
.forEach(
|
||||
(k) =>
|
||||
(dayjs[k] = dayjs[k].replace(
|
||||
|
|
|
@ -36,6 +36,7 @@ export default function TextAreaAutoSize(props: TextAreaAutoSizeProps) {
|
|||
forceFocus,
|
||||
children,
|
||||
as,
|
||||
onChange,
|
||||
...textAreaProps
|
||||
} = props;
|
||||
const line = lineHeight ?? DEFAULT_LINE_HEIGHT;
|
||||
|
@ -107,6 +108,10 @@ export default function TextAreaAutoSize(props: TextAreaAutoSizeProps) {
|
|||
style={{ height }}
|
||||
hideBorder={hideBorder}
|
||||
lineHeight={lineHeight}
|
||||
|
||||
onChange={ev => {
|
||||
onChange && onChange(ev);
|
||||
}}
|
||||
{...textAreaProps}
|
||||
/>
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue