chore: tweak dialog close button

This commit is contained in:
Steven
2024-01-13 15:33:23 +08:00
parent ab1fa44f00
commit 4a407668bc
19 changed files with 91 additions and 106 deletions

View File

@ -1,4 +1,4 @@
import { Button, Input, Radio, RadioGroup } from "@mui/joy";
import { Button, IconButton, Input, Radio, RadioGroup } from "@mui/joy";
import React, { useState } from "react";
import { toast } from "react-hot-toast";
import { userServiceClient } from "@/grpcweb";
@ -86,9 +86,9 @@ const CreateAccessTokenDialog: React.FC<Props> = (props: Props) => {
<>
<div className="dialog-header-container">
<p className="title-text">Create access token</p>
<button className="btn close-btn" onClick={() => destroy()}>
<Icon.X />
</button>
<IconButton size="sm" onClick={() => destroy()}>
<Icon.X className="w-5 h-auto" />
</IconButton>
</div>
<div className="dialog-content-container !w-80">
<div className="w-full flex flex-col justify-start items-start mb-3">