From 985fa2f7c99832cdf3c3351d2273c8fd05402b78 Mon Sep 17 00:00:00 2001
From: polwex <polwex@sortug.com>
Date: Wed, 17 Sep 2025 21:45:18 +0700
Subject: basic comms working

---
 front/src/components/modals/ShipModal.tsx | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

(limited to 'front/src/components/modals/ShipModal.tsx')

diff --git a/front/src/components/modals/ShipModal.tsx b/front/src/components/modals/ShipModal.tsx
index 86bffbb..e823a3a 100644
--- a/front/src/components/modals/ShipModal.tsx
+++ b/front/src/components/modals/ShipModal.tsx
@@ -1,13 +1,16 @@
 import type { Ship } from "@/types/urbit";
 import Modal from "./Modal";
 import Avatar from "../Avatar";
-import copyIcon from "@/assets/icons/copy.svg";
+import Icon from "@/components/Icon";
 import useLocalState from "@/state/state";
 import { useLocation } from "wouter";
 import toast from "react-hot-toast";
 
 export default function ({ ship }: { ship: Ship }) {
-  const { setModal, api } = useLocalState();
+  const { setModal, api } = useLocalState((s) => ({
+    setModal: s.setModal,
+    api: s.api,
+  }));
   const [_, navigate] = useLocation();
   function close() {
     setModal(null);
@@ -22,12 +25,12 @@ export default function ({ ship }: { ship: Ship }) {
       <div id="ship-modal">
         <div className="flex">
           <Avatar p={ship} size={60} />
-          <img
+          <Icon
+            name="copy"
+            size={20}
             className="copy-icon cp"
-            role="link"
             onClick={copy}
-            src={copyIcon}
-            alt=""
+            title="Copy ship name"
           />
         </div>
         <div className="buttons f1">
-- 
cgit v1.2.3

