How to use the antd.notification.success function in antd

To help you get started, we’ve selected a few antd examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github apache / apisix-dashboard / web / src / pages / Consumer / List.tsx View on Github external
remove(record.username).then(() => {
                notification.success({
                  message: `${formatMessage({ id: 'component.global.delete' })} ${formatMessage({
                    id: 'menu.consumer',
                  })} ${formatMessage({ id: 'component.status.success' })}`,
                });
                /* eslint-disable no-unused-expressions */
                ref.current?.reload();
              });
            }}
github wjkang / 3YAdmin / src / pages / role / index.jsx View on Github external
delRole = async (id) => {
        try {
            await delRole({ id: id });
            notification.success({
                placement: 'bottomLeft bottomRight',
                message: '删除成功',
            });
        } catch (e) {

        }
        this.refresh()
    }
    editModalOnCancel = () => {
github zhw2590582 / snippets-box / src / components / Content.js View on Github external
clipboard.on('success', () => {
      notification.success({
        message: 'Notification',
        description: 'Copy Success'
      });
    });
  }
github doublechaintech / retailscm-biz-suite / bizui / src / bizcomponents / consumerorderpriceadjustment / ConsumerOrderPriceAdjustment.model.js View on Github external
const notifySuccess=(userContext)=>{

	notification.success({
        message: appLocaleName(userContext,'Success'),
        description: appLocaleName(userContext,'Success'),
      })

}
github goodrain / rainbond-ui / src / routes / Plugin / index.js View on Github external
callback: data => {
        notification.success({
          message: "安装成功"
        });
        this.fetchPlugins();
        this.props.onInstallSuccess && this.props.onInstallSuccess();
      }
    });
github doublechaintech / retailscm-biz-suite / bizui / src / bizcomponents / offeracceptance / OfferAcceptance.model.js View on Github external
const notifySuccess=(userContext)=>{

	notification.success({
        message: appLocaleName(userContext,'Success'),
        description: appLocaleName(userContext,'Success'),
      })

}
github doublechaintech / retailscm-biz-suite / bizui / src / bizcomponents / loginhistory / LoginHistory.model.js View on Github external
const notifySuccess=(userContext)=>{

	notification.success({
        message: appLocaleName(userContext,'Success'),
        description: appLocaleName(userContext,'Success'),
      })

}
github bs32g1038 / node-blog / client / admin-ui / src / components / comment / CommentList.jsx View on Github external
axios.delete(base_url).then((res) => {
            let oldData = this.state.data;
            oldData.splice(index, 1);
            this.setState({
                data: oldData
            });
            notification.success({
                message: '操作提示',
                description: '内容已删除成功!',
            });
        });
    },
github doublechaintech / retailscm-biz-suite / bizui / src / bizcomponents / terminationtype / TerminationType.model.js View on Github external
const notifySuccess=(userContext)=>{

	notification.success({
        message: appLocaleName(userContext,'Success'),
        description: appLocaleName(userContext,'Success'),
      })

}
github doublechaintech / retailscm-biz-suite / bizui / src / bizcomponents / transportfleet / TransportFleet.model.js View on Github external
const notifySuccess=(userContext)=>{

	notification.success({
        message: appLocaleName(userContext,'Success'),
        description: appLocaleName(userContext,'Success'),
      })

}