Skip to content

Commit

Permalink
refactor: Update Playground component with lazy loading for images an…
Browse files Browse the repository at this point in the history
…d Lucide React icon
  • Loading branch information
HasanYahya101 committed Jul 23, 2024
1 parent 58c3da0 commit d04963d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
9 changes: 9 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"cmdk": "^1.0.0",
"lucide-react": "^0.414.0",
"next-themes": "^0.3.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
Expand Down
5 changes: 3 additions & 2 deletions src/components/component/playground.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
TooltipProvider,
TooltipTrigger,
} from "@/components/ui/tooltip";
import { ArrowRightLeft } from "lucide-react";

export function Playground() {

Expand Down Expand Up @@ -350,7 +351,7 @@ export function Playground() {
</div>
</div>
<div className="grid gap-2">
<div className="flex items-center gap-4">
<div className="flex items-center gap-4 group">
<TooltipProvider>
<Tooltip>
<TooltipTrigger>
Expand All @@ -364,7 +365,7 @@ export function Playground() {
</TooltipProvider>
<div className="flex-1 text-lg font-semibold text-gray-900 dark:text-gray-50">{rValue}, {gValue}, {bValue}</div>
</div>
<div className="flex items-center gap-4">
<div className="flex items-center gap-4 group">
<TooltipProvider>
<Tooltip>
<TooltipTrigger>
Expand Down

0 comments on commit d04963d

Please sign in to comment.