mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-05 23:25:44 -05:00
fix: fix build errors
This commit is contained in:
parent
81af91fa1f
commit
8d1e26d03e
2 changed files with 3 additions and 4 deletions
|
@ -52,7 +52,7 @@ export default observer(({ user }: Props) => {
|
|||
const { writeClipboard } = useIntermediate();
|
||||
|
||||
return (
|
||||
<Header borders placement="secondary">
|
||||
<Header topBorder placement="secondary">
|
||||
<HeaderBase>
|
||||
<Localizer>
|
||||
<Tooltip content={<Text id="app.special.copy_username" />}>
|
||||
|
|
|
@ -17,6 +17,7 @@ import { useCallback, useContext } from "preact/hooks";
|
|||
import { internalEmit } from "../../lib/eventEmitter";
|
||||
import { determineLink } from "../../lib/links";
|
||||
|
||||
import { dayjs } from "../../context/Locale";
|
||||
import { useIntermediate } from "../../context/intermediate/Intermediate";
|
||||
import { AppContext } from "../../context/revoltjs/RevoltClient";
|
||||
|
||||
|
@ -26,8 +27,6 @@ import { emojiDictionary } from "../../assets/emojis";
|
|||
import { MarkdownProps } from "./Markdown";
|
||||
import Prism from "./prism";
|
||||
|
||||
import { dayjs } from "../../context/Locale";
|
||||
|
||||
// TODO: global.d.ts file for defining globals
|
||||
declare global {
|
||||
interface Window {
|
||||
|
@ -136,7 +135,7 @@ export default function Renderer({ content, disallowBigEmoji }: MarkdownProps) {
|
|||
// We don't care if the mention changes.
|
||||
const newContent = content
|
||||
.replace(RE_TIME, (sub: string, ...args: unknown[]) => {
|
||||
if (isNaN(args[0] as string)) return sub;
|
||||
if (isNaN(args[0] as number)) return sub;
|
||||
const date = dayjs.unix(args[0] as number);
|
||||
const format = args[1] as string;
|
||||
let final = "";
|
||||
|
|
Loading…
Reference in a new issue