Skip to content

Commit

Permalink
Clean up root.tsx, save original code
Browse files Browse the repository at this point in the history
Co-authored-by: Gavin Kimball <[email protected]>
Co-authored-by: Jeff Korenstein <[email protected]>
Co-authored-by: Thad Kerosky <[email protected]>
Co-authored-by: Leopardfoot <[email protected]>
  • Loading branch information
5 people committed Nov 15, 2023
1 parent 76cde8f commit 2bfdf33
Show file tree
Hide file tree
Showing 4 changed files with 565 additions and 490 deletions.
2 changes: 1 addition & 1 deletion heat-stack/app/components/ui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ Some components in this directory are downloaded via the
[shadcn/ui](https://ui.shadcn.com) [CLI](https://ui.shadcn.com/docs/cli). Feel
free to customize them to your needs. It's important to know that shadcn/ui is
not a library of components you install, but instead it's a registry of prebuilt
components which you can download and customize.
components which you can download and customize.
15 changes: 15 additions & 0 deletions heat-stack/app/components/ui/checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ import { Check } from 'lucide-react'

import { cn } from '#app/utils/misc.tsx'

export type CheckboxProps = Omit<
React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>,
'type'
> & {
type?: string
}

const Checkbox = React.forwardRef<
React.ElementRef<typeof CheckboxPrimitive.Root>,
React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>
Expand All @@ -20,6 +27,14 @@ const Checkbox = React.forwardRef<
className={cn('flex items-center justify-center text-current')}
>
<Check className="h-4 w-4" />
{/* <svg viewBox="0 0 8 8">
<path
d="M1,4 L3,6 L7,2"
stroke="currentcolor"
strokeWidth="1"
fill="none"
/>
</svg> */}
</CheckboxPrimitive.Indicator>
</CheckboxPrimitive.Root>
))
Expand Down
Loading

0 comments on commit 2bfdf33

Please sign in to comment.