diff --git a/src/pages/authentication/BusRegister.js b/src/pages/authentication/BusRegister.js
index 3c003b2..96ff6d1 100644
--- a/src/pages/authentication/BusRegister.js
+++ b/src/pages/authentication/BusRegister.js
@@ -125,7 +125,7 @@
All steps completed - you're finished
-
+
diff --git a/src/pages/authentication/Register.js b/src/pages/authentication/Register.js
index 2f59a6d..c0ef694 100644
--- a/src/pages/authentication/Register.js
+++ b/src/pages/authentication/Register.js
@@ -141,7 +141,7 @@ const AuthWrapper = Loadable(lazy(() => import('./AuthWrapperCustom')));
{/* */}
-
+
{ activeStep === 2|| activeStep === 0? (
{fileList !=null?
- :null}
+ :null}
{/*
Submit
Submit
@@ -1296,13 +1322,11 @@ const CustomFormWizard = (props) => {
身份證明文件
{fileList !=null?
- :null}
+ :null}
-
-
diff --git a/src/pages/authentication/auth-forms/PasswordAlertDialog.js b/src/pages/authentication/auth-forms/PasswordAlertDialog.js
new file mode 100644
index 0000000..e5d68c7
--- /dev/null
+++ b/src/pages/authentication/auth-forms/PasswordAlertDialog.js
@@ -0,0 +1,48 @@
+import React, {
+ // useEffect,
+ // useState
+} from 'react';
+
+// material-ui
+import {
+ Button,
+ // Link,
+ Stack,
+ Typography,
+ Dialog,
+ DialogActions,
+ DialogContent,
+ DialogContentText,
+ DialogTitle
+} from '@mui/material';
+import CancelOutlinedIcon from '@mui/icons-material/CancelOutlined';
+
+const PasswordAlertDialog = (props) => {
+ return (
+
+ );
+};
+
+export default PasswordAlertDialog;
diff --git a/src/pages/authentication/auth-forms/PreviewUploadFileTable.js b/src/pages/authentication/auth-forms/PreviewUploadFileTable.js
new file mode 100644
index 0000000..7c70087
--- /dev/null
+++ b/src/pages/authentication/auth-forms/PreviewUploadFileTable.js
@@ -0,0 +1,107 @@
+// material-ui
+import * as React from 'react';
+import {
+ DataGrid,
+ // GridActionsCellItem,
+ // GridRowModes
+} from "@mui/x-data-grid";
+// import RemoveCircleOutlineIcon from '@mui/icons-material/RemoveCircleOutline';
+import {useEffect} from "react";
+// import {useNavigate} from "react-router-dom";
+// import { useTheme } from '@mui/material/styles';
+import {
+ Box,
+ Stack
+} from '@mui/material';
+// ==============================|| EVENT TABLE ||============================== //
+
+export default function PreviewUploadFileTable({recordList,}) {
+
+ const [rows, setRows] = React.useState(recordList);
+ const [rowModesModel] = React.useState({});
+ // const theme = useTheme();
+
+ // const navigate = useNavigate()
+
+ useEffect(() => {
+ setRows(recordList);
+ }, [recordList]);
+
+ function NoRowsOverlay() {
+ return (
+
+ 沒有上傳檔案
+ {/* (rows={[]})
*/}
+
+ );
+ }
+
+ // const handleCancelClick = (id) => () => {
+ // setRowModesModel({
+ // ...rowModesModel,
+ // [id]: { mode: GridRowModes.View, ignoreModifications: true },
+ // });
+ // console.log("Starting Delete")
+ // const editedRow = rows.find((row) => row.id === id);
+ // console.log(editedRow)
+ // console.log(editedRow.isNew)
+ // setUpdateRows(rows.filter((row) => row.id !== id));
+ // setRows(rows.filter((row) => row.id !== id));
+ // }
+
+ const columns = [
+ // {
+ // field: 'actions',
+ // type: 'actions',
+ // headerName: '',
+ // width: 30,
+ // cellClassName: 'actions',
+ // getActions: ({id}) => {
+ // return [
+ // }
+ // label="delete"
+ // className="textPrimary"
+ // onClick={handleCancelClick(id)}
+ // color="error"
+ // />]
+ // },
+ // },
+ {
+ id: 'name',
+ field: 'name',
+ headerName: '檔案名稱',
+ flex: 1,
+ },
+ {
+ id: 'size',
+ field: 'size',
+ headerName: '檔案大小',
+ valueGetter: (params) => {
+ // console.log(params)
+ return Math.ceil(params.value/1024)+" KB";
+ },
+ flex: 1,
+ },
+ ];
+
+ return (
+
+
+
+ );
+}
diff --git a/src/pages/authentication/auth-forms/UploadFileTable.js b/src/pages/authentication/auth-forms/UploadFileTable.js
index e73ff3e..3755f2e 100644
--- a/src/pages/authentication/auth-forms/UploadFileTable.js
+++ b/src/pages/authentication/auth-forms/UploadFileTable.js
@@ -15,7 +15,7 @@ import {
} from '@mui/material';
// ==============================|| EVENT TABLE ||============================== //
-export default function UploadFileTable({recordList, setUpdateRows, disableDelete}) {
+export default function UploadFileTable({recordList, setUpdateRows,}) {
const [rows, setRows] = React.useState(recordList);
const [rowModesModel,setRowModesModel] = React.useState({});
@@ -25,12 +25,9 @@ export default function UploadFileTable({recordList, setUpdateRows, disableDelet
useEffect(() => {
setRows(recordList);
+ // console.log(disableDelete);
}, [recordList]);
- // useEffect(() => {
- // console.log(updateRows);
- // }, [updateRows]);
-
function NoRowsOverlay() {
return (
@@ -60,7 +57,7 @@ export default function UploadFileTable({recordList, setUpdateRows, disableDelet
headerName: '',
width: 30,
cellClassName: 'actions',
- hide:{disableDelete},
+ // hide:true,
getActions: ({id}) => {
return [