react-code-dataset / wp-calypso /client /jetpack-connect /woo-install-ext-success-notice.tsx
Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
import page from '@automattic/calypso-router';
import { removeQueryArgs } from '@wordpress/url';
import { localize, LocalizeProps } from 'i18n-calypso';
import Notice from 'calypso/components/notice';
const WooInstallExtSuccessNotice = ( { translate }: LocalizeProps ) => {
return (
<Notice
className="jetpack-connect__woo-core-profiler-notice"
status="is-success"
showDismiss={ false }
text={ translate( 'Extensions successfully installed!' ) }
isCompact={ false }
duration={ 6000 }
onDismissClick={ () => {
page.replace(
removeQueryArgs(
window.location.pathname + window.location.search,
'installed_ext_success'
)
);
} }
/>
);
};
export default localize( WooInstallExtSuccessNotice );