From df1d1cc8a9c378ecf2f353fef1857cad686aca3c Mon Sep 17 00:00:00 2001 From: Tom Wise <79859203+tomwisecodes@users.noreply.github.com> Date: Sun, 1 Sep 2024 13:09:01 +0100 Subject: [PATCH] feat: sidebar on mobile --- .../AppComponents/Chat/chat-history.tsx | 25 +++++++++-- .../AppComponents/Chat/clear-history.tsx | 2 + .../export-buttons/LessonPlanProgressBar.tsx | 2 +- .../components/AppComponents/Chat/header.tsx | 2 +- .../AppComponents/Chat/sidebar-item.tsx | 45 +++---------------- .../AppComponents/Chat/sidebar-list.tsx | 5 ++- .../AppComponents/Chat/sidebar-mobile.tsx | 2 +- .../AppComponents/Chat/ui/sheet.tsx | 8 ++-- 8 files changed, 40 insertions(+), 51 deletions(-) diff --git a/apps/nextjs/src/components/AppComponents/Chat/chat-history.tsx b/apps/nextjs/src/components/AppComponents/Chat/chat-history.tsx index 3a5caac89..bb37b249d 100644 --- a/apps/nextjs/src/components/AppComponents/Chat/chat-history.tsx +++ b/apps/nextjs/src/components/AppComponents/Chat/chat-history.tsx @@ -2,16 +2,33 @@ import * as React from "react"; +import { OakIcon } from "@oaknational/oak-components"; + import { SidebarList } from "@/components/AppComponents/Chat/sidebar-list"; import ChatButton from "./ui/chat-button"; export function ChatHistory() { return ( -
+ Lesson history +
{chats?.length ?