Moving the ValidLabel type

This commit is contained in:
Keith Stevens
2023-01-10 16:30:44 +09:00
parent 2c34b09f85
commit 9e14de2570
4 changed files with 9 additions and 8 deletions
+1 -6
View File
@@ -2,15 +2,10 @@ import { Grid } from "@chakra-ui/react";
import { forwardRef, useColorMode } from "@chakra-ui/react";
import { useMemo } from "react";
import { Message } from "src/types/Conversation";
import { ValidLabel } from "src/types/Task";
import { FlaggableElement } from "./FlaggableElement";
export interface ValidLabel {
name: string;
display_text: string;
help_text: string;
}
export const Messages = ({
messages,
post_id,
@@ -2,7 +2,7 @@ import { Avatar, HStack, LinkBox, useColorModeValue } from "@chakra-ui/react";
import { boolean } from "boolean";
import NextLink from "next/link";
import { FlaggableElement } from "src/components/FlaggableElement";
import type { ValidLabel } from "src/components/Messages";
import type { ValidLabel } from "src/types/Task";
interface Message {
text: string;