Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import { cn } from "@/lib/utils";
import { Dialog, DialogContent, DialogTrigger } from "@/components/ui/dialog";
import { Button } from "@/components/ui/button";
import { ButtonGroup } from "@/components/ui/button-group";
import { Copy } from "lucide-react";
import { PiCopy } from "react-icons/pi";
import { toast } from "sonner";
import { useCloak } from "@/hooks/use-cloak";
import { MotionConfig } from "motion/react";
Expand Down Expand Up @@ -311,7 +311,7 @@ export function ErrorBoundary({ error }: Route.ErrorBoundaryProps) {
});
}}
>
<Copy />
<PiCopy />
</Button>
</ButtonGroup>
<DialogContent>
Expand Down
8 changes: 4 additions & 4 deletions app/routes/admin/columns.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use client";

import { type ColumnDef } from "@tanstack/react-table";
import { ArrowUpDown } from "lucide-react";
import { PiArrowsDownUp } from "react-icons/pi";
import { Button } from "@/components/ui/button";

export type User = {
Expand All @@ -27,7 +27,7 @@ export const createColumns = (): ColumnDef<User>[] => [
onClick={() => column.toggleSorting(column.getIsSorted() === "asc")}
>
Email
<ArrowUpDown className="ml-2 h-4 w-4" />
<PiArrowsDownUp className="ml-2 h-4 w-4" />
</Button>
);
},
Expand All @@ -42,7 +42,7 @@ export const createColumns = (): ColumnDef<User>[] => [
onClick={() => column.toggleSorting(column.getIsSorted() === "asc")}
>
Name
<ArrowUpDown className="ml-2 h-4 w-4" />
<PiArrowsDownUp className="ml-2 h-4 w-4" />
</Button>
);
},
Expand Down Expand Up @@ -90,7 +90,7 @@ export const createColumns = (): ColumnDef<User>[] => [
onClick={() => column.toggleSorting(column.getIsSorted() === "asc")}
>
Created
<ArrowUpDown className="ml-2 h-4 w-4" />
<PiArrowsDownUp className="ml-2 h-4 w-4" />
</Button>
);
},
Expand Down
4 changes: 2 additions & 2 deletions app/routes/admin/data-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
getSortedRowModel,
useReactTable,
} from "@tanstack/react-table";
import { ChevronDown } from "lucide-react";
import { PiCaretDown } from "react-icons/pi";

import { Button } from "@/components/ui/button";
import {
Expand Down Expand Up @@ -104,7 +104,7 @@ export function DataTable<TData, TValue>({
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button variant="outline" size="sm">
Columns <ChevronDown className="ml-2 h-4 w-4" />
Columns <PiCaretDown className="ml-2 h-4 w-4" />
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent align="end">
Expand Down
27 changes: 13 additions & 14 deletions app/routes/backups/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,13 @@ import {
useQuery,
} from "convex/react";
import {
Archive,
ArchiveRestore,
ArrowRight,
Clipboard,
Copy,
Delete,
Trash,
} from "lucide-react";
PiArchive,
PiArrowRight,
PiClipboard,
PiCopy,
PiTrash,
PiTrashSimple,
} from "react-icons/pi";
import { useEffect, useState } from "react";
import { toast } from "sonner";
import { AnimatePresence, motion } from "motion/react";
Expand Down Expand Up @@ -170,7 +169,7 @@ export default function BackupsPage() {
});
}}
>
<Clipboard />
<PiClipboard />
</Button>
</div>
</div>
Expand Down Expand Up @@ -247,7 +246,7 @@ export default function BackupsPage() {
onClick={handleCreateBackup}
disabled={!inputtedBackupName.trim()}
>
<ArrowRight />
<PiArrowRight />
</Button>
</div>
</CardContent>
Expand Down Expand Up @@ -277,7 +276,7 @@ export default function BackupsPage() {
<AlertDialog>
<AlertDialogTrigger asChild>
<Button variant="destructive" size="icon">
<Trash />
<PiTrash />
</Button>
</AlertDialogTrigger>
<AlertDialogContent>
Expand Down Expand Up @@ -333,12 +332,12 @@ export default function BackupsPage() {
});
}}
>
<Copy />
<PiCopy />
</Button>
<AlertDialog>
<AlertDialogTrigger asChild>
<Button>
<ArchiveRestore />
<PiArchive />
Restore
</Button>
</AlertDialogTrigger>
Expand Down Expand Up @@ -386,7 +385,7 @@ export default function BackupsPage() {
<Empty>
<EmptyHeader>
<EmptyMedia variant="icon">
<Archive className="size-6" />
<PiArchive className="size-6" />
</EmptyMedia>
<EmptyTitle>No backups yet</EmptyTitle>
<EmptyDescription>
Expand Down
6 changes: 3 additions & 3 deletions app/routes/g/columns.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use client";

import type { ColumnDef } from "@tanstack/react-table";
import { ArrowUpDown } from "lucide-react";
import { PiArrowsDownUp } from "react-icons/pi";
import { Button } from "@/components/ui/button";
import type { ParsedGmae } from "@/lib/gmaes";

Expand All @@ -16,7 +16,7 @@ export const columns: ColumnDef<ParsedGmae>[] = [
onClick={() => column.toggleSorting(column.getIsSorted() === "asc")}
>
Name
<ArrowUpDown className="ml-2 h-4 w-4" />
<PiArrowsDownUp className="ml-2 h-4 w-4" />
</Button>
);
},
Expand All @@ -40,7 +40,7 @@ export const columns: ColumnDef<ParsedGmae>[] = [
onClick={() => column.toggleSorting(column.getIsSorted() === "asc")}
>
Category
<ArrowUpDown className="ml-2 h-4 w-4" />
<PiArrowsDownUp className="ml-2 h-4 w-4" />
</Button>
);
},
Expand Down
46 changes: 23 additions & 23 deletions app/routes/g/play.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@ import type { Route } from "./+types/play";
import { data } from "react-router";
import { Button } from "@/components/ui/button";
import {
AppWindow,
Bookmark,
BookmarkCheck,
ChevronDown,
ChevronUp,
ExternalLink,
Fullscreen,
Keyboard,
Maximize,
RefreshCw,
Scan,
Share,
Square,
} from "lucide-react";
PiAppWindow,
PiBookmark,
PiBookmarkFill,
PiCaretDown,
PiCaretUp,
PiArrowSquareOut,
PiArrowsOut,
PiKeyboard,
PiArrowsOutSimple,
PiArrowClockwise,
PiScan,
PiShare,
PiSquare,
} from "react-icons/pi";
import { ButtonGroup } from "@/components/ui/button-group";
import {
Tooltip,
Expand Down Expand Up @@ -100,7 +100,7 @@ export function Play({ params }: Route.ComponentProps) {
toast.success("Focused gmae");
}}
>
<Keyboard />
<PiKeyboard />
<span className="sr-only">Fix keyboard input</span>
</Button>
</TooltipTrigger>
Expand All @@ -115,7 +115,7 @@ export function Play({ params }: Route.ComponentProps) {
iframeRef.current?.contentWindow?.location.reload();
}}
>
<RefreshCw />
<PiArrowClockwise />
<span className="sr-only">Reload</span>
</Button>
</TooltipTrigger>
Expand Down Expand Up @@ -145,7 +145,7 @@ export function Play({ params }: Route.ComponentProps) {
}
}}
>
<AppWindow />
<PiAppWindow />
<span className="sr-only">Open in new window</span>
</Button>
</TooltipTrigger>
Expand All @@ -171,7 +171,7 @@ export function Play({ params }: Route.ComponentProps) {
}
}}
>
<ExternalLink />
<PiArrowSquareOut />
<span className="sr-only">Open in new tab</span>
</Button>
</TooltipTrigger>
Expand All @@ -187,7 +187,7 @@ export function Play({ params }: Route.ComponentProps) {
}}
variant="outline"
>
<ChevronDown />
<PiCaretDown />
<span className="sr-only">Maximize</span>
</Button>
</TooltipTrigger>
Expand All @@ -202,7 +202,7 @@ export function Play({ params }: Route.ComponentProps) {
iframeRef.current?.focus();
}}
>
<Maximize />
<PiArrowsOutSimple />
<span className="sr-only">Fullscreen</span>
</Button>
</TooltipTrigger>
Expand All @@ -218,7 +218,7 @@ export function Play({ params }: Route.ComponentProps) {
}
}}
>
{isSaved ? <BookmarkCheck /> : <Bookmark />}
{isSaved ? <PiBookmarkFill /> : <PiBookmark />}
{isSaved ? "Saved" : "Save"}
</Button>
<Button
Expand Down Expand Up @@ -248,7 +248,7 @@ export function Play({ params }: Route.ComponentProps) {
}
}}
>
<Share />
<PiShare />
Share
</Button>
</ButtonGroup>
Expand All @@ -266,7 +266,7 @@ export function Play({ params }: Route.ComponentProps) {
setMaximized(false);
}}
>
<ChevronUp />
<PiCaretUp />
</Button>
</div>
)}
Expand Down
Loading