Skip to content

Commit 7a7efce

Browse files
feat(organization): change clipboard icon (#550)
1 parent 5d3d43f commit 7a7efce

File tree

2 files changed

+28
-3
lines changed

2 files changed

+28
-3
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
//
2+
3+
import type { JSX } from "hono/jsx";
4+
5+
//
6+
// From https://icon-sets.iconify.design/ph/copy-thin/
7+
//
8+
export function PhCopyThin(props: JSX.HTMLAttributes) {
9+
return (
10+
<svg
11+
xmlns="http://www.w3.org/2000/svg"
12+
fill="none"
13+
className="size-4"
14+
viewBox="0 0 256 256"
15+
{...props}
16+
>
17+
<path
18+
fill="currentColor"
19+
d="M216 36H88a4 4 0 0 0-4 4v44H40a4 4 0 0 0-4 4v128a4 4 0 0 0 4 4h128a4 4 0 0 0 4-4v-44h44a4 4 0 0 0 4-4V40a4 4 0 0 0-4-4m-52 176H44V92h120Zm48-48h-40V88a4 4 0 0 0-4-4H92V44h120Z"
20+
></path>
21+
</svg>
22+
);
23+
}

packages/~/organizations/api/src/domaines/Page.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { hyper_ref } from "@~/app.core/html";
22
import { Pagination_Schema } from "@~/app.core/schema";
3-
import { button } from "@~/app.ui/button";
43
import { copy_text_content_to_clipboard } from "@~/app.ui/button/scripts";
54
import { Foot } from "@~/app.ui/hx_table";
5+
import { PhCopyThin } from "@~/app.ui/icon/Copy";
66
import { row } from "@~/app.ui/table";
77
import { urls } from "@~/app.urls";
88
import type { get_unverified_domains_dto } from "@~/organizations.repository/get_unverified_domains";
@@ -138,10 +138,12 @@ function Row({
138138
<td>
139139
<span id={$domain}> {domain} </span>
140140
<button
141-
class={button({ intent: "ghost" })}
141+
aria-hidden="true"
142+
class="leading-none"
143+
title="Copier le nom de domaine"
142144
_={copy_text_content_to_clipboard(`#${$domain}`)}
143145
>
144-
📋
146+
<PhCopyThin />
145147
</button>
146148
</td>
147149
<td>{organization.siret}</td>

0 commit comments

Comments
 (0)