mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-07 17:35:28 +00:00
Fix: Certain languages not loading due to bad map.
This commit is contained in:
@@ -160,7 +160,7 @@ function Locale({ children, locale }: Props) {
|
|||||||
|
|
||||||
dayjs["sameElse"] = DATE_FORMATS[date];
|
dayjs["sameElse"] = DATE_FORMATS[date];
|
||||||
Object.keys(dayjs)
|
Object.keys(dayjs)
|
||||||
.filter((k) => k !== "defaults")
|
.filter((k) => typeof dayjs[k] === 'string')
|
||||||
.forEach(
|
.forEach(
|
||||||
(k) =>
|
(k) =>
|
||||||
(dayjs[k] = dayjs[k].replace(
|
(dayjs[k] = dayjs[k].replace(
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ export default function TextAreaAutoSize(props: TextAreaAutoSizeProps) {
|
|||||||
forceFocus,
|
forceFocus,
|
||||||
children,
|
children,
|
||||||
as,
|
as,
|
||||||
|
onChange,
|
||||||
...textAreaProps
|
...textAreaProps
|
||||||
} = props;
|
} = props;
|
||||||
const line = lineHeight ?? DEFAULT_LINE_HEIGHT;
|
const line = lineHeight ?? DEFAULT_LINE_HEIGHT;
|
||||||
@@ -107,6 +108,10 @@ export default function TextAreaAutoSize(props: TextAreaAutoSizeProps) {
|
|||||||
style={{ height }}
|
style={{ height }}
|
||||||
hideBorder={hideBorder}
|
hideBorder={hideBorder}
|
||||||
lineHeight={lineHeight}
|
lineHeight={lineHeight}
|
||||||
|
|
||||||
|
onChange={ev => {
|
||||||
|
onChange && onChange(ev);
|
||||||
|
}}
|
||||||
{...textAreaProps}
|
{...textAreaProps}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user