@@ -29,6 +29,8 @@ import { | |||||
// import FpsIcon from "assets/images/icons/fps.svg"; | // import FpsIcon from "assets/images/icons/fps.svg"; | ||||
import titleBackgroundImg from 'assets/images/dashboard/gazette-bar.png' | import titleBackgroundImg from 'assets/images/dashboard/gazette-bar.png' | ||||
import {ThemeProvider} from "@emotion/react"; | |||||
import {PNSPS_BUTTON_THEME} from "../../themes/buttonConst"; | |||||
const BackgroundHead = { | const BackgroundHead = { | ||||
backgroundImage: `url(${titleBackgroundImg})`, | backgroundImage: `url(${titleBackgroundImg})`, | ||||
width: '100%', | width: '100%', | ||||
@@ -424,10 +426,10 @@ const Index = () => { | |||||
</Grid> | </Grid> | ||||
<Grid item xs={12} md={12} width="100%"> | <Grid item xs={12} md={12} width="100%"> | ||||
<Stack direction="row" justifyContent="flex-end" alignItems="flex-start" spacing={2} mr={12} > | <Stack direction="row" justifyContent="flex-end" alignItems="flex-start" spacing={2} mr={12} > | ||||
<ThemeProvider theme={PNSPS_BUTTON_THEME}> | |||||
<Button | <Button | ||||
component="span" | component="span" | ||||
variant="contained" | variant="contained" | ||||
size="large" | |||||
// color="error" | // color="error" | ||||
onClick={() => paymentClick()} | onClick={() => paymentClick()} | ||||
sx={{ mt: 4 }} | sx={{ mt: 4 }} | ||||
@@ -436,12 +438,12 @@ const Index = () => { | |||||
<Button | <Button | ||||
component="span" | component="span" | ||||
variant="contained" | variant="contained" | ||||
size="large" | |||||
// color="error" | // color="error" | ||||
onClick={() => { navigate("/publicNotice") }} | onClick={() => { navigate("/publicNotice") }} | ||||
sx={{ mt: 4 }} | sx={{ mt: 4 }} | ||||
>取消 | >取消 | ||||
</Button> | </Button> | ||||
</ThemeProvider> | |||||
</Stack> | </Stack> | ||||
</Grid> | </Grid> | ||||
{/*row 2*/} | {/*row 2*/} | ||||
@@ -141,9 +141,20 @@ const Index = () => { | |||||
</Grid> | </Grid> | ||||
</Grid> | </Grid> | ||||
<div> | <div> | ||||
<Dialog open={isPopUp} onClose={() => setIsPopUp(false)} > | |||||
<DialogTitle></DialogTitle> | |||||
<Typography variant="h3" style={{ padding: '16px' }}>確認付款</Typography> | |||||
<Dialog | |||||
open={isPopUp} | |||||
onClose={() => setIsPopUp(false)} | |||||
PaperProps={{ | |||||
sx: { | |||||
minWidth: '40vw', | |||||
maxWidth: { xs: '90vw', s: '90vw', m: '70vw', lg: '30vw' }, | |||||
maxHeight: { xs: '90vh', s: '70vh', m: '70vh', lg: '50vh' } | |||||
} | |||||
}} | |||||
> | |||||
<DialogTitle> | |||||
<Typography variant="h3" >確認付款</Typography> | |||||
</DialogTitle> | |||||
<DialogContent style={{ display: 'flex', }}> | <DialogContent style={{ display: 'flex', }}> | ||||
<Stack direction="column" justifyContent="space-between"> | <Stack direction="column" justifyContent="space-between"> | ||||
<Typography variant="h4">總額(HK$): {FormatUtils.currencyFormat(fee)}</Typography> | <Typography variant="h4">總額(HK$): {FormatUtils.currencyFormat(fee)}</Typography> | ||||
@@ -39,6 +39,7 @@ import EditNoteIcon from '@mui/icons-material/EditNote'; | |||||
import DownloadIcon from '@mui/icons-material/Download'; | import DownloadIcon from '@mui/icons-material/Download'; | ||||
import {PNSPS_BUTTON_THEME} from "../../../themes/buttonConst"; | import {PNSPS_BUTTON_THEME} from "../../../themes/buttonConst"; | ||||
import {ThemeProvider} from "@emotion/react"; | import {ThemeProvider} from "@emotion/react"; | ||||
import * as React from "react"; | |||||
// ==============================|| DASHBOARD - DEFAULT ||============================== // | // ==============================|| DASHBOARD - DEFAULT ||============================== // | ||||
const ApplicationDetailCard = ( | const ApplicationDetailCard = ( | ||||
{ applicationDetailData, | { applicationDetailData, | ||||
@@ -147,7 +148,7 @@ const ApplicationDetailCard = ( | |||||
currentApplicationDetailData.status == "confirmed" ? | currentApplicationDetailData.status == "confirmed" ? | ||||
<Button | <Button | ||||
variant="contained" | variant="contained" | ||||
color="create " | |||||
color="create" | |||||
onClick={() => { checkExprityDate(true) }} | onClick={() => { checkExprityDate(true) }} | ||||
disabled={currentApplicationDetailData.status == "rejected" | disabled={currentApplicationDetailData.status == "rejected" | ||||
|| currentApplicationDetailData.status == "cancelled" | || currentApplicationDetailData.status == "cancelled" | ||||
@@ -564,9 +565,20 @@ const ApplicationDetailCard = ( | |||||
</Grid> | </Grid> | ||||
</Grid> | </Grid> | ||||
<div> | <div> | ||||
<Dialog open={isPopUp} onClose={() => setIsPopUp(false)} > | |||||
<DialogTitle></DialogTitle> | |||||
<Typography variant="h3" style={{ padding: '16px' }}>確認付款</Typography> | |||||
<Dialog | |||||
open={isPopUp} | |||||
onClose={() => setIsPopUp(false)} | |||||
PaperProps={{ | |||||
sx: { | |||||
minWidth: '40vw', | |||||
maxWidth: { xs: '90vw', s: '90vw', m: '70vw', lg: '30vw' }, | |||||
maxHeight: { xs: '90vh', s: '70vh', m: '70vh', lg: '50vh' } | |||||
} | |||||
}} | |||||
> | |||||
<DialogTitle> | |||||
<Typography variant="h3" >確認付款</Typography> | |||||
</DialogTitle> | |||||
<DialogContent style={{ display: 'flex', }}> | <DialogContent style={{ display: 'flex', }}> | ||||
<Stack direction="column" justifyContent="space-between"> | <Stack direction="column" justifyContent="space-between"> | ||||
<Typography variant="h4">總額(HK$): {FormatUtils.currencyFormat(fee)}</Typography> | <Typography variant="h4">總額(HK$): {FormatUtils.currencyFormat(fee)}</Typography> | ||||