Skip to content

Commit

Permalink
style(icon): add copy/past icon from dsfr (#601)
Browse files Browse the repository at this point in the history
  • Loading branch information
rebeccadumazert authored Oct 16, 2024
1 parent 4bcb977 commit e192dd7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 26 deletions.
23 changes: 0 additions & 23 deletions packages/~/app/ui/src/icon/Copy.tsx

This file was deleted.

9 changes: 6 additions & 3 deletions packages/~/organizations/api/src/domaines/Page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { hyper_ref } from "@~/app.core/html";
import { Pagination_Schema } from "@~/app.core/schema";
import { copy_text_content_to_clipboard } from "@~/app.ui/button/scripts";
import { Foot } from "@~/app.ui/hx_table";
import { PhCopyThin } from "@~/app.ui/icon/Copy";
import { row } from "@~/app.ui/table";
import { urls } from "@~/app.urls";
import type { get_unverified_domains_dto } from "@~/organizations.repository/get_unverified_domains";
Expand Down Expand Up @@ -139,11 +138,15 @@ function Row({
<span id={$domain}> {domain} </span>
<button
aria-hidden="true"
class="leading-none"
class="fr-p-O leading-none"
title="Copier le nom de domaine"
_={copy_text_content_to_clipboard(`#${$domain}`)}
>
<PhCopyThin />
<span
aria-hidden="true"
class="fr-icon-device-line"
style={{ color: "var(--text-disabled-grey)" }}
/>
</button>
</td>
<td>{organization.siret}</td>
Expand Down

0 comments on commit e192dd7

Please sign in to comment.