소스 검색

Revert "fix: add key to modals"

This reverts commit c03104fa6747f5ce9e631d229814773104134fe7.
poeti8 5 년 전
부모
커밋
4270107f4a
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  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>
       </Tr>
       {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}>
             <Flex alignItems="flex-start">
               <Col alignItems="flex-start" mr={[0, 3, 3]}>
@@ -366,7 +366,6 @@ const Row: FC<RowProps> = ({ index, link, setDeleteModal }) => {
         </EditContent>
       )}
       <Modal
-        key={link.id}
         id="table-qrcode-modal"
         minWidth="max-content"
         show={qrModal}
@@ -377,7 +376,6 @@ const Row: FC<RowProps> = ({ index, link, setDeleteModal }) => {
         </RowCenter>
       </Modal>
       <Modal
-        key={link.id}
         id="table-ban-modal"
         show={banModal}
         closeHandler={() => setBanModal(false)}