Skip to content

fix: classname does not exists in src/components/ui/dialog.tsx and .../ui/alert-dialog.tsx #17

@dacmarcell

Description

@dacmarcell

How to reproduce?

Command: npm create tauri-ui

-> Next.js

Command: npm install && npm run build

Output:

> npm run build

> tauri-ui@0.1.0 build
> next build

 ✓ Creating an optimized production build
 ✓ Compiled successfully
   Linting and checking validity of types  .Failed to compile.

./src/components/ui/dialog.tsx:14:3
Type error: Property 'className' does not exist on type 'DialogPortalProps'.

Merge branch 'main' of https://github.com/marcelldac/tauri-ui
  12 |
  13 | const DialogPortal = ({
> 14 |   className,
     |   ^
  15 |   ...props
  16 | }: DialogPrimitive.DialogPortalProps) => (
  17 |   <DialogPrimitive.Portal className={cn(className)} {...props} />

I just deleted classname of this errors

How do i make this works?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions