Skip to content

Commit

Permalink
fix: fr fixed the errors this time
Browse files Browse the repository at this point in the history
  • Loading branch information
not-ani committed Jul 27, 2024
1 parent 1451ee3 commit 7930841
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const schema = z.object({
z.object({
id: z.string(),
type: z.string().optional(),
parentId: z.string().optional().default("noid"),
parentId: z.string().optional(),
position: z.object({
x: z.number(),
y: z.number(),
Expand Down Expand Up @@ -65,7 +65,7 @@ export async function saveTasks(data: InputProps) {
id: task.id,
type: task.type, // Provide a default value if type is undefined
title: task.data.title,
parentId: task.parentId, // Use null if parentId is undefined
parentId: task.parentId ?? "noid", // Use null if parentId is undefined
status: task.data.status as TaskStatus,
description: task.data.description,
position: task.position,
Expand Down
1 change: 1 addition & 0 deletions apps/website/src/app/(marketing)/_components/faq.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from "react";

import {
Accordion,
AccordionContent,
Expand Down
6 changes: 2 additions & 4 deletions apps/website/src/components/ui/button-loading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const buttonVariants = cva(

export interface ButtonProps
extends React.ButtonHTMLAttributes<HTMLButtonElement>,
VariantProps<typeof buttonVariants> {
VariantProps<typeof buttonVariants> {
asChild?: boolean;
disabled?: boolean;
icon?: React.ReactNode;
Expand Down Expand Up @@ -70,9 +70,7 @@ const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
>
<>
{loading && (
<Loader2
className={cn("h-4 w-4 animate-spin", "mr-2")}
/>
<Loader2 className={cn("h-4 w-4 animate-spin", "mr-2")} />
)}
{!loading && icon}
{children}
Expand Down

0 comments on commit 7930841

Please sign in to comment.