From fb214b8f7bbc7810e1b553166c3720b2ee80e398 Mon Sep 17 00:00:00 2001 From: 1ilit Date: Tue, 19 Sep 2023 15:49:21 +0300 Subject: [PATCH] Add pop confirm to delete field --- src/components/table.jsx | 32 +++++++++++++++++++------------- src/index.js | 18 +++++++++++------- 2 files changed, 30 insertions(+), 20 deletions(-) diff --git a/src/components/table.jsx b/src/components/table.jsx index 5afa7fd..420825f 100644 --- a/src/components/table.jsx +++ b/src/components/table.jsx @@ -16,7 +16,7 @@ import { IconColorPalette, } from "@douyinfe/semi-icons"; import { - // Modal, + Popconfirm, Select, Card, Form, @@ -731,14 +731,10 @@ export default function Table(props) {
{hoveredField === index ? ( - + }) + } + onCancel={() => {}} + > + + ) : ( fieldData.type )} diff --git a/src/index.js b/src/index.js index d563c0f..eb2c18d 100644 --- a/src/index.js +++ b/src/index.js @@ -1,13 +1,17 @@ -import React from 'react'; -import ReactDOM from 'react-dom/client'; -import './index.css'; -import App from './App'; -import reportWebVitals from './reportWebVitals'; +import React from "react"; +import ReactDOM from "react-dom/client"; +import "./index.css"; +import App from "./App"; +import reportWebVitals from "./reportWebVitals"; +import { LocaleProvider } from "@douyinfe/semi-ui"; +import en_US from "@douyinfe/semi-ui/lib/es/locale/source/en_US"; -const root = ReactDOM.createRoot(document.getElementById('root')); +const root = ReactDOM.createRoot(document.getElementById("root")); root.render( - + + + );