Skip to content

Commit

Permalink
fix typo error DeployStatusEnum.SHOWDEPLOYINFO
Browse files Browse the repository at this point in the history
  • Loading branch information
ch-liuzhide committed Dec 4, 2024
1 parent 328e84d commit 462ad44
Showing 1 changed file with 20 additions and 9 deletions.
29 changes: 20 additions & 9 deletions client/app/factory/edit/components/DeployBotModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ interface IModalProps {

enum DeployStatusEnum {
HIDEDEPLOYINFO = 'HIDEDEPLOYINFO',
SHOWEPLOYINFO = 'PREEDIT',
SHOWDEPLOYINFO = 'SHOWDEPLOYINFO',
PRESUBMIT = 'PRESUBMIT',
}

Expand Down Expand Up @@ -107,7 +107,7 @@ const MyBotDeployModal: React.FC<IModalProps> = ({ isOpen, onClose }) => {
if (lodash.isEqual(originDeployModel, deployInfo)) {
setDeployBtnDisabled(true);
deployStatus === DeployStatusEnum.PRESUBMIT &&
setDeployStatus(DeployStatusEnum.SHOWEPLOYINFO);
setDeployStatus(DeployStatusEnum.SHOWDEPLOYINFO);
} else {
deployStatus !== DeployStatusEnum.HIDEDEPLOYINFO &&
setDeployStatus(DeployStatusEnum.PRESUBMIT);
Expand Down Expand Up @@ -173,20 +173,25 @@ const MyBotDeployModal: React.FC<IModalProps> = ({ isOpen, onClose }) => {
className="border-[1.5px] border-[#3F3F46] rounded-[46px]"
variant="light"
onPress={() => {
setDeployStatus(DeployStatusEnum.SHOWEPLOYINFO);
setDeployStatus(DeployStatusEnum.SHOWDEPLOYINFO);
}}
>
{I18N.DeployBotModal.index.buShu}<Image src="../images/chevron-down.svg" alt={I18N.DeployBotModal.index.daKaiBuShu} />
{I18N.DeployBotModal.index.buShu}
<Image
src="../images/chevron-down.svg"
alt={I18N.DeployBotModal.index.daKaiBuShu}
/>
</Button>
<Button
className="border-[1.5px] border-[#3F3F46] rounded-[46px] bg-[#3F3F46] text-white"
onPress={() => onClose()}
>
{I18N.DeployBotModal.index.wanCheng}</Button>
{I18N.DeployBotModal.index.wanCheng}
</Button>
</>
);
}
if (deployStatus === DeployStatusEnum.SHOWEPLOYINFO) {
if (deployStatus === DeployStatusEnum.SHOWDEPLOYINFO) {
return (
<>
<Button
Expand All @@ -196,7 +201,11 @@ const MyBotDeployModal: React.FC<IModalProps> = ({ isOpen, onClose }) => {
setDeployStatus(DeployStatusEnum.HIDEDEPLOYINFO);
}}
>
{I18N.DeployBotModal.index.buShu}<Image src="../images/chevron-up.svg" alt={I18N.DeployBotModal.index.shouQiBuShu} />
{I18N.DeployBotModal.index.buShu}
<Image
src="../images/chevron-up.svg"
alt={I18N.DeployBotModal.index.shouQiBuShu}
/>
</Button>
<Button
isDisabled={deployBtnDisabled}
Expand All @@ -209,7 +218,8 @@ const MyBotDeployModal: React.FC<IModalProps> = ({ isOpen, onClose }) => {
className="border-[1.5px] border-[#3F3F46] rounded-[46px] bg-[#3F3F46] text-white"
onPress={() => handleOK()}
>
{I18N.components.BotCreateFrom.queRen}</Button>
{I18N.components.BotCreateFrom.queRen}
</Button>
</>
);
}
Expand Down Expand Up @@ -299,7 +309,8 @@ const MyBotDeployModal: React.FC<IModalProps> = ({ isOpen, onClose }) => {
className="border-[1.5px] border-[#3F3F46] rounded-[46px] bg-[#3F3F46] text-white"
onPress={() => onClose()}
>
{I18N.DeployBotModal.index.wanCheng}</Button>
{I18N.DeployBotModal.index.wanCheng}
</Button>
</ModalFooter>
</>
) : (
Expand Down

0 comments on commit 462ad44

Please sign in to comment.