Skip to content

Commit

Permalink
fix: address toggle type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dominik-stumpf committed Jul 29, 2024
1 parent 913e436 commit e82fbc8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/app/explorer/_components/GuildSearchBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const GuildSearchBar = () => {
type="single"
className="self-start sm:h-12 sm:rounded-r-xl sm:border sm:border-border-muted sm:border-l-0 sm:bg-card sm:px-4"
size="sm"
variant="default"
variant="ghost"
onValueChange={(value) => value && setOrder(value as Order)}
value={order}
>
Expand Down
2 changes: 1 addition & 1 deletion src/app/explorer/_components/StickyBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const Nav = () => {
type="single"
className="gap-2"
size={isSearchStuck ? "sm" : "lg"}
variant={isNavStuck ? "default" : "mono"}
variant={isNavStuck ? "ghost" : "mono"}
onValueChange={(value) => value && setActiveSection(value as ActiveSection)}
value={activeSection}
>
Expand Down
5 changes: 2 additions & 3 deletions src/v2/components/ThemeToggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,13 @@ export function ThemeToggle() {
}
}}
aria-label="Toggle between themes"
variant="ghost"
>
<ToggleGroupItem
value="light"
aria-label="Toggle light mode"
size="icon"
variant="primary"
variant="ghost"
className="size-8"
>
<Sun weight="bold" />
Expand All @@ -41,7 +42,6 @@ export function ThemeToggle() {
value="dark"
aria-label="Toggle dark mode"
size="icon"
variant="primary"
className="size-8"
>
<Moon weight="bold" />
Expand All @@ -50,7 +50,6 @@ export function ThemeToggle() {
value="system"
aria-label="Toggle system default"
size="icon"
variant="primary"
className="size-8"
>
<Desktop weight="bold" />
Expand Down
4 changes: 2 additions & 2 deletions src/v2/components/ui/ToggleGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import {
} from "react"

const ToggleGroupContext = createContext<VariantProps<typeof toggleVariants>>({
size: "default",
variant: "default",
size: "md",
variant: "ghost",
})

const ToggleGroup = forwardRef<
Expand Down

0 comments on commit e82fbc8

Please sign in to comment.