Skip to content

Commit

Permalink
💄 use theme close button
Browse files Browse the repository at this point in the history
  • Loading branch information
StarHeartHunt committed Nov 22, 2023
1 parent 550b83a commit 27b0daa
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions website/src/components/Modal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import React, { useEffect, useState } from "react";

import clsx from "clsx";

import IconClose from "@theme/Icon/Close";

import "./styles.css";

export type Props = {
Expand Down Expand Up @@ -45,20 +47,7 @@ export default function Modal({
{title}
<div className="card-actions ml-auto">
<button className="btn btn-square btn-sm" onClick={onFadeOut}>
<svg
xmlns="http://www.w3.org/2000/svg"
className="h-6 w-6"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
>
<path
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="2"
d="M6 18L18 6M6 6l12 12"
/>
</svg>
<IconClose />
</button>
</div>
</div>
Expand Down

0 comments on commit 27b0daa

Please sign in to comment.