mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 08:46:22 +02:00
feat: add loading state for chat components and implement skeleton loading UI
This commit is contained in:
parent
d0a490fa50
commit
5e4dce40bd
4 changed files with 39 additions and 3 deletions
|
|
@ -36,6 +36,7 @@ interface MobileSidebarProps {
|
|||
pageUsage?: PageUsage;
|
||||
theme?: string;
|
||||
setTheme?: (theme: "light" | "dark" | "system") => void;
|
||||
isLoadingChats?: boolean;
|
||||
}
|
||||
|
||||
export function MobileSidebarTrigger({ onClick }: { onClick: () => void }) {
|
||||
|
|
@ -76,6 +77,7 @@ export function MobileSidebar({
|
|||
pageUsage,
|
||||
theme,
|
||||
setTheme,
|
||||
isLoadingChats = false,
|
||||
}: MobileSidebarProps) {
|
||||
const handleSearchSpaceSelect = (id: number) => {
|
||||
onSearchSpaceSelect(id);
|
||||
|
|
@ -155,6 +157,7 @@ export function MobileSidebar({
|
|||
theme={theme}
|
||||
setTheme={setTheme}
|
||||
className="w-full border-none"
|
||||
isLoadingChats={isLoadingChats}
|
||||
/>
|
||||
</div>
|
||||
</SheetContent>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue