Skip to content

Commit

Permalink
chore: Removed label
Browse files Browse the repository at this point in the history
  • Loading branch information
matvp91 committed Sep 26, 2024
1 parent 12e63cf commit 36cc820
Show file tree
Hide file tree
Showing 2 changed files with 87 additions and 10 deletions.
79 changes: 79 additions & 0 deletions packages/dashboard/src/components/ui/card.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
import * as React from "react"

import { cn } from "@/lib/utils"

const Card = React.forwardRef<
HTMLDivElement,
React.HTMLAttributes<HTMLDivElement>
>(({ className, ...props }, ref) => (
<div
ref={ref}
className={cn(
"rounded-lg border bg-card text-card-foreground shadow-sm",
className
)}
{...props}
/>
))
Card.displayName = "Card"

const CardHeader = React.forwardRef<
HTMLDivElement,
React.HTMLAttributes<HTMLDivElement>
>(({ className, ...props }, ref) => (
<div
ref={ref}
className={cn("flex flex-col space-y-1.5 p-6", className)}
{...props}
/>
))
CardHeader.displayName = "CardHeader"

const CardTitle = React.forwardRef<
HTMLParagraphElement,
React.HTMLAttributes<HTMLHeadingElement>
>(({ className, ...props }, ref) => (
<h3
ref={ref}
className={cn(
"text-2xl font-semibold leading-none tracking-tight",
className
)}
{...props}
/>
))
CardTitle.displayName = "CardTitle"

const CardDescription = React.forwardRef<
HTMLParagraphElement,
React.HTMLAttributes<HTMLParagraphElement>
>(({ className, ...props }, ref) => (
<p
ref={ref}
className={cn("text-sm text-muted-foreground", className)}
{...props}
/>
))
CardDescription.displayName = "CardDescription"

const CardContent = React.forwardRef<
HTMLDivElement,
React.HTMLAttributes<HTMLDivElement>
>(({ className, ...props }, ref) => (
<div ref={ref} className={cn("p-6 pt-0", className)} {...props} />
))
CardContent.displayName = "CardContent"

const CardFooter = React.forwardRef<
HTMLDivElement,
React.HTMLAttributes<HTMLDivElement>
>(({ className, ...props }, ref) => (
<div
ref={ref}
className={cn("flex items-center p-6 pt-0", className)}
{...props}
/>
))
CardFooter.displayName = "CardFooter"

export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent }
18 changes: 8 additions & 10 deletions packages/dashboard/src/pages/PlayerPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,14 @@ export function PlayerPage() {
{masterUrl ? (
<>
<Player url={masterUrl} />
<div className="mt-4">
<Label>Playlist URL</Label>
<Input
value={masterUrl}
onClick={(event) => {
(event.target as HTMLInputElement).select();
}}
onChange={() => {}}
/>
</div>
<Input
className="mt-2"
value={masterUrl}
onClick={(event) => {
(event.target as HTMLInputElement).select();
}}
onChange={() => {}}
/>
</>
) : null}
{error ? (
Expand Down

0 comments on commit 36cc820

Please sign in to comment.