From 24c94de6d52dbdf38632ad27fb5af3a14c10bfb8 Mon Sep 17 00:00:00 2001
From: Furkan Sahin <furkan-dev@proton.me>
Date: Sun, 7 Aug 2022 12:34:20 -0500
Subject: Cleanup

---
 src/components/PeerTeachers.svelte | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

(limited to 'src/components/PeerTeachers.svelte')

diff --git a/src/components/PeerTeachers.svelte b/src/components/PeerTeachers.svelte
index 986d696..d7faf58 100644
--- a/src/components/PeerTeachers.svelte
+++ b/src/components/PeerTeachers.svelte
@@ -31,7 +31,7 @@
     });
   }
 
-  function handleEmail() {
+  function copyEmailsToClipboard() {
     const emails = peerTeachers.flatMap((pt) => pt.email).join(",");
     navigator.clipboard.writeText(emails);
     if (snackbarSuccess) snackbarSuccess.open();
@@ -56,7 +56,7 @@
 
 <div class="h-full overflow-auto">
   <table class="table table-compact w-full h-full">
-    <thead class="bg-white border-b sticky top-0">
+    <thead class="sticky top-0">
       <tr>
         {#each headers as header, i}
           <th>
@@ -69,9 +69,8 @@
                 <Icon
                   name="clipboard-copy"
                   class="h-4 w-4 ml-2 mt-0.5"
-                  handleClick={handleEmail}
+                  handleClick={copyEmailsToClipboard}
                 />
-                <!-- </Button> -->
               </div>
             {:else}
               {header}
-- 
cgit v1.2.3

