Skip to content

Commit

Permalink
add suspense + fix mj v6.0 naming
Browse files Browse the repository at this point in the history
  • Loading branch information
flosrn committed Jan 24, 2024
1 parent bcaaaff commit 427b047
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ const VersionSelector = () => {
disabled={isVersionSelectorDisabled}
>
<SelectTrigger>
<SelectValue id="version-selector" placeholder="Version 6" />
<SelectValue id="version-selector" placeholder="Version 6.0" />
</SelectTrigger>
<SelectContent>
<SelectGroup>
<SelectItem value="--v 6">Version 6</SelectItem>
<SelectItem value="--v 6.0">Version 6</SelectItem>
<SelectItem value="--v 5.2">Version 5.2</SelectItem>
<SelectItem value="--v 5.1">Version 5.1</SelectItem>
<SelectItem value="--v 5">Version 5</SelectItem>
Expand Down
4 changes: 1 addition & 3 deletions app/(playground)/playground/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ export default async function CreatePage() {
defaultValue={DisplayMode.STACK}
className="md:grid md:h-full md:grid-cols-[265px,minmax(auto,1fr)]"
>
<Suspense>
<SideColumn />
</Suspense>
<SideColumn />
<Suspense>
<MainColumn />
</Suspense>
Expand Down
10 changes: 6 additions & 4 deletions app/(playground)/playground/side-column.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from "react";
import React, { Suspense } from "react";
import { LayersIcon, LayoutGridIcon } from "lucide-react";

import { ScrollArea } from "~/components/ui/scroll-area";
Expand All @@ -25,17 +25,19 @@ const SideColumn = ({ className }: SidebarProps) => (
/>
<TabsList className="hidden grid-cols-2 md:grid">
<TabsTrigger value={DisplayMode.STACK}>
<LayersIcon className="h-4 w-4" />
<LayersIcon className="size-4" />
</TabsTrigger>
<TabsTrigger value={DisplayMode.GRID}>
<LayoutGridIcon className="h-4 w-4" />
<LayoutGridIcon className="size-4" />
</TabsTrigger>
</TabsList>
<LabelWithTooltip
title="Style Filter"
description="Experiment with different pre-defined styles that can be applied to your image."
/>
<FilterSelector />
<Suspense>
<FilterSelector />
</Suspense>
<Separator />

<LabelWithTooltip
Expand Down
2 changes: 1 addition & 1 deletion app/(playground)/playground/store/versionStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ type VersionAction = {

export const useVersionStore = create<VersionAction & VersionState>()(
(set) => ({
versionValue: "--v 6",
versionValue: "--v 6.0",
isVersionSelectorDisabled: false,
setVersionValue: (value) => set(() => ({ versionValue: value })),
setIsVersionSelectorDisabled: (value) =>
Expand Down

1 comment on commit 427b047

@vercel
Copy link

@vercel vercel bot commented on 427b047 Jan 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.