Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
students
survey
Commits
0d4d491e
Commit
0d4d491e
authored
Jul 26, 2022
by
Yoon, Daeki
😅
Browse files
복사 아이콘 svg로 변경
parent
8ba8236b
Changes
3
Show whitespace changes
Inline
Side-by-side
frontend/src/icons/DuplicateIcon.tsx
0 → 100644
View file @
0d4d491e
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
>
);
};
frontend/src/icons/index.ts
View file @
0d4d491e
export
{
SpinnerIcon
}
from
"
./SpinnerIcon
"
;
export
{
DuplicateIcon
}
from
"
./DuplicateIcon
"
;
export
{
UserIcon
}
from
"
./UserIcon
"
;
frontend/src/profile/MySurveyCard.tsx
View file @
0d4d491e
...
...
@@ -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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment