diff --git a/website/src/components/Loading/LoadingScreen.jsx b/website/src/components/Loading/LoadingScreen.jsx index 57323f8c..56e9edcb 100644 --- a/website/src/components/Loading/LoadingScreen.jsx +++ b/website/src/components/Loading/LoadingScreen.jsx @@ -1,12 +1,12 @@ -import { Progress } from "@chakra-ui/react"; +import { Container, Progress } from "@chakra-ui/react"; export const LoadingScreen = ({ text }) => ( -
+ {text && ( -
+
{text}
-
+
)} -
+ ); diff --git a/website/src/components/TwoColumns.tsx b/website/src/components/TwoColumns.tsx index 5792f7d0..e3f59433 100644 --- a/website/src/components/TwoColumns.tsx +++ b/website/src/components/TwoColumns.tsx @@ -1,14 +1,17 @@ +import { Container, useColorModeValue } from "@chakra-ui/react"; + + export const TwoColumns = ({ children }: { children: React.ReactNode[] }) => { if (!Array.isArray(children) || children.length !== 2) { throw new Error("TwoColumns expects 2 children"); } - + const bg = useColorModeValue("white", "gray.700") const [first, second] = children; return ( -
-
{first}
-
{second}
-
+ + {first} + {second} + ); }; diff --git a/website/src/pages/create/assistant_reply.tsx b/website/src/pages/create/assistant_reply.tsx index a7f058f8..e60fde66 100644 --- a/website/src/pages/create/assistant_reply.tsx +++ b/website/src/pages/create/assistant_reply.tsx @@ -1,4 +1,4 @@ -import { Textarea } from "@chakra-ui/react"; +import { Container, Textarea } from "@chakra-ui/react"; import { useRef, useState } from "react"; import useSWRMutation from "swr/mutation"; import useSWRImmutable from "swr/immutable"; @@ -45,12 +45,12 @@ const AssistantReply = () => { } if (tasks.length == 0) { - return
No tasks found...
; + return No tasks found...; } const task = tasks[0].task; return ( -
+ <>
Reply as the assistant
@@ -78,7 +78,7 @@ const AssistantReply = () => {
- + ); }; diff --git a/website/src/pages/create/user_reply.tsx b/website/src/pages/create/user_reply.tsx index 18427c71..3b8adedd 100644 --- a/website/src/pages/create/user_reply.tsx +++ b/website/src/pages/create/user_reply.tsx @@ -1,4 +1,4 @@ -import { Textarea } from "@chakra-ui/react"; +import { Container, Textarea, useColorModeValue } from "@chakra-ui/react"; import { useRef, useState } from "react"; import useSWRMutation from "swr/mutation"; import useSWRImmutable from "swr/immutable"; @@ -12,6 +12,7 @@ import { LoadingScreen } from "@/components/Loading/LoadingScreen"; const UserReply = () => { const [tasks, setTasks] = useState([]); + const bg = useColorModeValue("white", "gray.400"); const inputRef = useRef(null); @@ -45,12 +46,12 @@ const UserReply = () => { } if (tasks.length == 0) { - return
No tasks found...
; + return No tasks found...; } const task = tasks[0].task; return ( -
+ <>
Reply as a user
@@ -61,7 +62,7 @@ const UserReply = () => {