diff --git a/packages/neuron-ui/src/components/CustomRows/DAORecordRow.tsx b/packages/neuron-ui/src/components/CustomRows/DAORecordRow.tsx index 2e8faf0d3b..564aaf4764 100644 --- a/packages/neuron-ui/src/components/CustomRows/DAORecordRow.tsx +++ b/packages/neuron-ui/src/components/CustomRows/DAORecordRow.tsx @@ -109,7 +109,7 @@ const DAORecord = ({ } } return onClick - }, [onClick, epoch, depositEpoch, withdrawingEpoch]) + }, [onClick, epoch, depositEpoch, withdrawingEpoch, t]) return (
diff --git a/packages/neuron-ui/src/components/NervosDAO/WithdrawDialog.tsx b/packages/neuron-ui/src/components/NervosDAO/WithdrawDialog.tsx index 639579facf..b0f3d49861 100644 --- a/packages/neuron-ui/src/components/NervosDAO/WithdrawDialog.tsx +++ b/packages/neuron-ui/src/components/NervosDAO/WithdrawDialog.tsx @@ -65,6 +65,7 @@ const WithdrawDialog = ({ blocks: localNumberFormatter(currentEpochInfo.length - currentEpochInfo.index), days: localNumberFormatter(epochs / BigInt(6)), }) + const alert = epochs <= BigInt(5) ? t('nervos-dao.withdraw-alert', { @@ -73,6 +74,7 @@ const WithdrawDialog = ({ days: (epochs + BigInt(180)) / BigInt(6), }) : '' + return (