Skip to content

Commit

Permalink
Merge pull request #30 from newfold-labs/fix/minor-changes
Browse files Browse the repository at this point in the history
Fix/minor changes
  • Loading branch information
arunshenoy99 authored Oct 17, 2024
2 parents 889a796 + ebe2643 commit 9e63255
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion includes/WPAdmin/Listeners/DataAttrListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ public function enqueue_data_attr_listener() {
wp_enqueue_script( 'nfd-installer-data-attr-listener' );
}
}
}
}
13 changes: 8 additions & 5 deletions src/Installer/components/Modal/index.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// External Imports
import apiFetch from '@wordpress/api-fetch';
import { __, sprintf } from '@wordpress/i18n';
import { Icon, info } from '@wordpress/icons';
import {
createInterpolateElement,
useRef,
Expand All @@ -10,7 +9,7 @@ import {
} from '@wordpress/element';

// Internal Imports
import { loadingInstaller } from '../../static/icons/index';
import { errorIcon, loadingInstaller } from '../../static/icons/index';
import {
INSTALLER_DIV,
installerAPI,
Expand Down Expand Up @@ -160,7 +159,7 @@ const Modal = ( {
{ sprintf(
/* translators: %s: Plugin Name */
__(
'Activating %s',
'Activating the %s',
'wp-module-onboarding'
),
pluginName
Expand All @@ -171,9 +170,13 @@ const Modal = ( {
) }
{ pluginStatus === 'failed' && (
<div className="nfd-installer-modal__content-error">
<Icon
<img
src={ errorIcon }
alt={ __(
'Error Icon.',
'wp-module-installer'
) }
className="nfd-installer-modal__content-error--icon"
icon={ info }
/>
<div>{ errorMessage }</div>
</div>
Expand Down

0 comments on commit 9e63255

Please sign in to comment.