import Lottie, { LottieRefCurrentProps } from "lottie-react"; import { useEffect, useRef } from "preact/hooks"; import { Button, Column, InputBox, Modal, Row } from "@revoltchat/ui"; import { useClient } from "../../client/ClientController"; import { modalController } from "../ModalController"; import { ModalProps } from "../types"; import usernameAnim from "./legacy/usernameUpdateLottie.json"; /** * Changelog: Username update */ export default function ChangelogUsernames({ onClose, signal, }: ModalProps<"changelog_usernames">) { const client = useClient(); const lottieRef = useRef(); useEffect(() => { if (lottieRef.current) { const timer = setTimeout(() => lottieRef.current!.play(), 2500); return () => clearTimeout(timer); } }, [lottieRef]); return ( { (
Usernames are Changing We've changed how usernames work on Revolt. Now you can set a display name in addition to a username with a number tag for easier sharing. Here's how your new username looks: Read more about this change
) as any }
); }