Skip to content

Commit

Permalink
fix: dialog trigger에 asChild 속성 추가 및 import 정리
Browse files Browse the repository at this point in the history
  • Loading branch information
parkblo committed Nov 8, 2024
1 parent 9788ed4 commit a7e5a1d
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions packages/frontend/src/pages/Home.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
import { useNavigate, NavigateFunction } from "react-router-dom";
import { Dispatch, SetStateAction, useState, FormEvent } from "react";
import { Dispatch, FormEvent, SetStateAction, useState } from "react";
import { NavigateFunction, useNavigate } from "react-router-dom";

import { Button } from "@/components/ui/button.tsx";
import {
Dialog,
DialogClose,
DialogContent,
DialogDescription,
DialogFooter,
DialogHeader,
DialogTitle,
DialogTrigger,
DialogFooter,
DialogClose,
} from "@/components/ui/dialog.tsx";
import { Button } from "@/components/ui/button.tsx";

type CreateSpaceButtonProps = {
navigate: NavigateFunction;
Expand Down Expand Up @@ -38,7 +39,7 @@ function CreateSpaceButton({

return (
<Dialog>
<DialogTrigger>
<DialogTrigger asChild>
<Button>스페이스 생성</Button>
</DialogTrigger>
<DialogContent className="sm:max-w-[425px]">
Expand Down

0 comments on commit a7e5a1d

Please sign in to comment.