Skip to content

Commit ec10609

Browse files
eerisonsatnaing
andauthored
feat: add pencil icon before suggestion changes text (#405)
* feat: Add pencil icon before suggestion changes text * fix: update class to className and adjust icon scale --------- Co-authored-by: satnaing <satnaingdev@gmail.com>
1 parent 8bcf870 commit ec10609

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

src/components/Datetime.tsx

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,22 @@ const EditPost = ({ editPost, postId }: EditPostProps) => {
9797
<>
9898
<span aria-hidden="true"> | </span>
9999
<a
100-
className="hover:opacity-75"
100+
className="space-x-1.5 hover:opacity-75"
101101
href={editPostUrl}
102102
rel="noopener noreferrer"
103103
target="_blank"
104104
>
105-
{editPostText}
105+
<svg
106+
xmlns="http://www.w3.org/2000/svg"
107+
className="icon icon-tabler icons-tabler-outline icon-tabler-edit inline-block !scale-90 fill-skin-base"
108+
aria-hidden="true"
109+
>
110+
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
111+
<path d="M7 7h-1a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-1" />
112+
<path d="M20.385 6.585a2.1 2.1 0 0 0 -2.97 -2.97l-8.415 8.385v3h3l8.385 -8.415z" />
113+
<path d="M16 5l3 3" />
114+
</svg>
115+
<span className="text-base italic">{editPostText}</span>
106116
</a>
107117
</>
108118
)

0 commit comments

Comments
 (0)