fix: remove redundant shadcn component className overrides
This commit is contained in:
@@ -55,13 +55,8 @@ export default function SignInPage() {
|
|||||||
Sign in to unlock AI-powered event creation
|
Sign in to unlock AI-powered event creation
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<Button
|
<Button onClick={handleSignIn} className="w-full" disabled={isLoading}>
|
||||||
onClick={handleSignIn}
|
{isLoading ? <Loader2 className="h-4 w-4 animate-spin" /> : null}
|
||||||
className="w-full"
|
|
||||||
size="default"
|
|
||||||
disabled={isLoading}
|
|
||||||
>
|
|
||||||
{isLoading ? <Loader2 className="h-4 w-4 animate-spin mr-2" /> : null}
|
|
||||||
{isLoading ? "Signing in..." : "Continue with Authentik"}
|
{isLoading ? "Signing in..." : "Continue with Authentik"}
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ export function DateTimePicker({
|
|||||||
type="button"
|
type="button"
|
||||||
variant="outline"
|
variant="outline"
|
||||||
className={cn(
|
className={cn(
|
||||||
"flex h-9 flex-1 items-center gap-2 px-3 py-1 text-sm font-normal justify-start",
|
"flex flex-1 px-3 py-1 font-normal justify-start",
|
||||||
!displayLabel && "text-muted-foreground",
|
!displayLabel && "text-muted-foreground",
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
@@ -151,7 +151,7 @@ export function DateTimePicker({
|
|||||||
variant="ghost"
|
variant="ghost"
|
||||||
size="sm"
|
size="sm"
|
||||||
onClick={() => handleQuickSelect(date)}
|
onClick={() => handleQuickSelect(date)}
|
||||||
className="h-auto rounded-md px-2 py-1 text-xs text-muted-foreground"
|
className="h-auto px-2 py-1 text-xs text-muted-foreground"
|
||||||
>
|
>
|
||||||
{label}
|
{label}
|
||||||
</Button>
|
</Button>
|
||||||
@@ -170,7 +170,7 @@ export function DateTimePicker({
|
|||||||
{!allDay && (
|
{!allDay && (
|
||||||
<div className="flex items-center gap-1">
|
<div className="flex items-center gap-1">
|
||||||
<Select value={String(currentHour)} onValueChange={handleHourChange}>
|
<Select value={String(currentHour)} onValueChange={handleHourChange}>
|
||||||
<SelectTrigger className="h-9 w-[62px] px-2 text-xs">
|
<SelectTrigger className="w-[62px] px-2 text-xs">
|
||||||
<SelectValue />
|
<SelectValue />
|
||||||
</SelectTrigger>
|
</SelectTrigger>
|
||||||
<SelectContent className="max-h-56">
|
<SelectContent className="max-h-56">
|
||||||
@@ -186,7 +186,7 @@ export function DateTimePicker({
|
|||||||
value={String(snappedMinute)}
|
value={String(snappedMinute)}
|
||||||
onValueChange={handleMinuteChange}
|
onValueChange={handleMinuteChange}
|
||||||
>
|
>
|
||||||
<SelectTrigger className="h-9 w-[62px] px-2 text-xs">
|
<SelectTrigger className="w-[62px] px-2 text-xs">
|
||||||
<SelectValue />
|
<SelectValue />
|
||||||
</SelectTrigger>
|
</SelectTrigger>
|
||||||
<SelectContent>
|
<SelectContent>
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ export const EventCard = ({ event, onEdit, onDelete }: EventCardProps) => {
|
|||||||
<Button
|
<Button
|
||||||
variant="link"
|
variant="link"
|
||||||
size="sm"
|
size="sm"
|
||||||
className="inline-flex items-center gap-1 h-auto p-0 text-xs text-primary/70 hover:text-primary"
|
className="gap-1 h-auto p-0 text-xs text-primary/70 hover:text-primary"
|
||||||
asChild
|
asChild
|
||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
@@ -132,7 +132,7 @@ export const EventCard = ({ event, onEdit, onDelete }: EventCardProps) => {
|
|||||||
</DropdownMenuTrigger>
|
</DropdownMenuTrigger>
|
||||||
<DropdownMenuContent align="end" className="w-36">
|
<DropdownMenuContent align="end" className="w-36">
|
||||||
<DropdownMenuItem onClick={handleEdit}>
|
<DropdownMenuItem onClick={handleEdit}>
|
||||||
<Pencil className="h-3.5 w-3.5 mr-2" />
|
<Pencil className="h-3.5 w-3.5" />
|
||||||
Edit
|
Edit
|
||||||
</DropdownMenuItem>
|
</DropdownMenuItem>
|
||||||
<DropdownMenuSeparator />
|
<DropdownMenuSeparator />
|
||||||
@@ -140,7 +140,7 @@ export const EventCard = ({ event, onEdit, onDelete }: EventCardProps) => {
|
|||||||
onClick={() => onDelete(event.id)}
|
onClick={() => onDelete(event.id)}
|
||||||
className="text-destructive focus:text-destructive"
|
className="text-destructive focus:text-destructive"
|
||||||
>
|
>
|
||||||
<Trash2 className="h-3.5 w-3.5 mr-2" />
|
<Trash2 className="h-3.5 w-3.5" />
|
||||||
Delete
|
Delete
|
||||||
</DropdownMenuItem>
|
</DropdownMenuItem>
|
||||||
</DropdownMenuContent>
|
</DropdownMenuContent>
|
||||||
|
|||||||
@@ -178,7 +178,7 @@ export const EventDialog = ({
|
|||||||
size="sm"
|
size="sm"
|
||||||
disabled={!start}
|
disabled={!start}
|
||||||
onClick={() => handleApplyDuration(minutes)}
|
onClick={() => handleApplyDuration(minutes)}
|
||||||
className="rounded-md px-2 py-1 text-xs text-muted-foreground"
|
className="px-2 py-1 text-xs text-muted-foreground"
|
||||||
>
|
>
|
||||||
{label}
|
{label}
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ export function IcsFilePicker({
|
|||||||
>
|
>
|
||||||
{children || (
|
{children || (
|
||||||
<>
|
<>
|
||||||
<Calendar className="mr-2 h-4 w-4" />
|
<Calendar className="h-4 w-4" />
|
||||||
Import Calendar
|
Import Calendar
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ export function RRuleDisplayDetailed({
|
|||||||
{showBadges && details.length > 0 && (
|
{showBadges && details.length > 0 && (
|
||||||
<div className="flex flex-wrap gap-1">
|
<div className="flex flex-wrap gap-1">
|
||||||
{details.map((detail) => (
|
{details.map((detail) => (
|
||||||
<Badge key={detail} variant="outline" className="text-xs">
|
<Badge key={detail} variant="outline">
|
||||||
{detail}
|
{detail}
|
||||||
</Badge>
|
</Badge>
|
||||||
))}
|
))}
|
||||||
|
|||||||
Reference in New Issue
Block a user