Commit 0d4d491e authored by Yoon, Daeki's avatar Yoon, Daeki 😅
Browse files

복사 아이콘 svg로 변경

parent 8ba8236b
import React from "react";
export const DuplicateIcon = ({ ...props }) => {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
strokeWidth={2}
{...props}
>
<path
strokeLinecap="round"
strokeLinejoin="round"
d="M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"
/>
</svg>
);
};
export { SpinnerIcon } from "./SpinnerIcon";
export { DuplicateIcon } from "./DuplicateIcon";
export { UserIcon } from "./UserIcon";
......@@ -3,7 +3,7 @@ import { useNavigate } from "react-router-dom";
import { surveyApi } from "../apis";
import { SurveyType } from "../types";
import { catchErrors } from "../helpers";
import CopyImg from "../icons/copy.png";
import { DuplicateIcon } from "../icons";
type Props = {
data: SurveyType;
......@@ -63,7 +63,8 @@ export const MySurveyCard = ({ data }: Props) => {
</button>
<div className="flex justify-end pt-1 pr-1">
<button className="flex place-self-center" onClick={copyLink}>
링크복사 <img src={CopyImg} alt="copy"></img>
링크복사
<DuplicateIcon className="w-7 h-7" />
</button>
<button
type="button"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment