Răsfoiți Sursa

Revert "fix: add key to modals"

This reverts commit c03104fa6747f5ce9e631d229814773104134fe7.
poeti8 5 ani în urmă
părinte
comite
4270107f4a
1 a modificat fișierele cu 1 adăugiri și 3 ștergeri
  1. 1 3
      client/components/LinksTable.tsx

+ 1 - 3
client/components/LinksTable.tsx

@@ -292,7 +292,7 @@ const Row: FC<RowProps> = ({ index, link, setDeleteModal }) => {
         </Td>
         </Td>
       </Tr>
       </Tr>
       {showEdit && (
       {showEdit && (
-        <EditContent key={link.id} px={[3, 3, 24]} py={[3, 3, 24]}>
+        <EditContent px={[3, 3, 24]} py={[3, 3, 24]}>
           <Col as="form" alignItems="flex-start" onSubmit={onEdit}>
           <Col as="form" alignItems="flex-start" onSubmit={onEdit}>
             <Flex alignItems="flex-start">
             <Flex alignItems="flex-start">
               <Col alignItems="flex-start" mr={[0, 3, 3]}>
               <Col alignItems="flex-start" mr={[0, 3, 3]}>
@@ -366,7 +366,6 @@ const Row: FC<RowProps> = ({ index, link, setDeleteModal }) => {
         </EditContent>
         </EditContent>
       )}
       )}
       <Modal
       <Modal
-        key={link.id}
         id="table-qrcode-modal"
         id="table-qrcode-modal"
         minWidth="max-content"
         minWidth="max-content"
         show={qrModal}
         show={qrModal}
@@ -377,7 +376,6 @@ const Row: FC<RowProps> = ({ index, link, setDeleteModal }) => {
         </RowCenter>
         </RowCenter>
       </Modal>
       </Modal>
       <Modal
       <Modal
-        key={link.id}
         id="table-ban-modal"
         id="table-ban-modal"
         show={banModal}
         show={banModal}
         closeHandler={() => setBanModal(false)}
         closeHandler={() => setBanModal(false)}