+
{title}
+
+ '
+ {t(
+ `Update ${change.networkParameter.key} to ${change.networkParameter.value}`
+ )}
+ '
+
+ {!isNaN(enactment) && (
+
+ {t('Enactment date:')} {getDateTimeFormat().format(enactment)}
+
+ )}
+
+
+ {t('View proposal details')}
+
+
+
+ );
+};
+
+export const useUpdateNetworkParametersToasts = (): Toast[] => {
+ const { proposalToasts, setToast, remove } = useToasts((store) => ({
+ proposalToasts: store.toasts,
+ setToast: store.setToast,
+ remove: store.remove,
+ }));
+
+ const fromProposal = useCallback(
+ (proposal: Proposal): Toast => {
+ const id = `update-network-param-proposal-${proposal.id}`;
+ return {
+ id: `update-network-param-proposal-${proposal.id}`,
+ intent: Intent.Warning,
+ render: () => (
+