Skip to content

Commit

Permalink
fix: lint prettier errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ruru-m07 committed Jul 27, 2024
1 parent 3dee192 commit 28be8ea
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
10 changes: 9 additions & 1 deletion apps/www/components/preview/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,15 @@ export default {
<Tooltip>
<TooltipTrigger className="underline">@ruru</TooltipTrigger>
<TooltipContent
style={{ padding: "0px", paddingRight: "10px", paddingLeft: "10px", height: "35px", display: "flex", justifyContent: "center", alignItems: "center" }}
style={{
padding: "0px",
paddingRight: "10px",
paddingLeft: "10px",
height: "35px",
display: "flex",
justifyContent: "center",
alignItems: "center",
}}
>
<p> author of ruru-UI </p>
</TooltipContent>
Expand Down
10 changes: 5 additions & 5 deletions packages/ui/src/components/tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { cn } from "@/utils/cn";
/**
* TooltipProvider component.
* Provides context for all tooltip components.
*
*
* @component
* @example
* <TooltipProvider>
Expand All @@ -27,7 +27,7 @@ const TooltipProvider = TooltipPrimitive.Provider;
/**
* Tooltip component.
* The root component for the tooltip.
*
*
* @component
* @example
* <Tooltip>
Expand All @@ -44,7 +44,7 @@ const Tooltip = TooltipPrimitive.Root;
/**
* TooltipTrigger component.
* The element that triggers the display of the tooltip.
*
*
* @component
* @example
* <TooltipTrigger asChild>
Expand All @@ -56,7 +56,7 @@ const TooltipTrigger = TooltipPrimitive.Trigger;
/**
* TooltipContent component.
* The content of the tooltip that appears when the trigger is activated.
*
*
* @component
* @param {string} className - Additional classes to style the tooltip content.
* @param {number} sideOffset - Offset from the trigger element.
Expand All @@ -75,7 +75,7 @@ const TooltipContent = React.forwardRef<
ref={ref}
className={cn(
"h-fit data-[state=delayed-open]:data-[side=top]:animate-slideDownAndFade data-[state=delayed-open]:data-[side=right]:animate-slideLeftAndFade data-[state=delayed-open]:data-[side=left]:animate-slideRightAndFade data-[state=delayed-open]:data-[side=bottom]:animate-slideUpAndFade text-primary-foreground select-none rounded-[4px] bg-primary px-[15px] py-[10px] text-[15px] leading-none shadow-[hsl(206_22%_7%_/_35%)_0px_10px_38px_-10px,_hsl(206_22%_7%_/_20%)_0px_10px_20px_-15px] will-change-[transform,opacity]",
className
className,
)}
sideOffset={sideOffset}
{...props}
Expand Down

0 comments on commit 28be8ea

Please sign in to comment.