Move card types to declaration file

This commit is contained in:
2023-10-19 16:49:25 -04:00
parent 9a5820cfba
commit b6f073083e
4 changed files with 27 additions and 29 deletions

View File

@ -12,15 +12,7 @@ import {
} from "@chakra-ui/react";
import { useEffect, useState } from "react";
export default function (props: {
ban_reason: string;
createdAt: number;
discriminator: string;
id: string;
learned: string;
reason_for_unban: string;
username: string;
}) {
export default function (props: AppealCardProps) {
const [dateString, setDateString] = useState(
new Date(props.createdAt).toUTCString()
);