Skip to content

Commit

Permalink
Dark mode: Bump Sparkle & fixes for sidebar (#10822)
Browse files Browse the repository at this point in the history
  • Loading branch information
PopDaph authored Feb 15, 2025
1 parent 4dd3960 commit bd437cb
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
4 changes: 3 additions & 1 deletion front/components/UserMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ export function UserMenu({
[owner, sendNotification, user, featureFlags]
);

const theme = localStorage.getItem("theme") || "light";

return (
<DropdownMenu>
<DropdownMenuTrigger>
Expand Down Expand Up @@ -160,7 +162,7 @@ export function UserMenu({
<DropdownMenuSub>
<DropdownMenuSubTrigger label="Theme" icon={ImageIcon} />
<DropdownMenuSubContent>
<DropdownMenuRadioGroup>
<DropdownMenuRadioGroup value={theme}>
<DropdownMenuRadioItem
value="light"
label="Light"
Expand Down
2 changes: 1 addition & 1 deletion front/components/assistant/conversation/SidebarMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ export function AssistantSidebarMenu({ owner }: AssistantSidebarMenuProps) {
<DropdownMenuTrigger asChild>
<Button size="sm" icon={MoreIcon} variant="outline" />
</DropdownMenuTrigger>
<DropdownMenuContent mountPortal={false}>
<DropdownMenuContent>
<DropdownMenuLabel>Assistants</DropdownMenuLabel>
<DropdownMenuItem
href={`/w/${owner.sId}/builder/assistants/create`}
Expand Down
8 changes: 4 additions & 4 deletions front/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion front/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"dependencies": {
"@auth0/nextjs-auth0": "^3.5.0",
"@dust-tt/client": "file:../sdks/js",
"@dust-tt/sparkle": "0.2.400",
"@dust-tt/sparkle": "0.2.401",
"@dust-tt/types": "file:../types",
"@google-cloud/bigquery": "^7.9.1",
"@google-cloud/storage-transfer": "^3.6.0",
Expand Down

0 comments on commit bd437cb

Please sign in to comment.