Skip to content

Commit 3bc938a

Browse files
fix: js lint
1 parent 99e4630 commit 3bc938a

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

assets/apps/dashboard/src/Components/Content/AvailableModule.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* global neveDash */
2-
import { __, sprintf } from '@wordpress/i18n';
2+
import { __ } from '@wordpress/i18n';
33
import {
44
NEVE_AVAILABLE_MODULES_ICON_MAP,
55
NEVE_STORE,
@@ -42,10 +42,8 @@ const ModuleToggle = ({
4242
const { api } = neveDash;
4343
const { title } = moduleData;
4444
const toastMessage = {
45-
//translators: %s - Plugin name
46-
installing: sprintf(__('Installing', 'neve'), 'Orbit Fox Plugin'),
47-
//translators: %s - Plugin name
48-
activating: sprintf(__('Activating', 'neve'), 'Orbit Fox Plugin'),
45+
installing: __('Installing', 'neve'),
46+
activating: __('Activating', 'neve'),
4947
};
5048

5149
const handleToggle = async (value) => {
@@ -90,7 +88,10 @@ const ModuleToggle = ({
9088
);
9189
} catch (error) {
9290
setToast(
93-
__('Something went wrong. Please reload the page and try again.', 'neve')
91+
__(
92+
'Something went wrong. Please reload the page and try again.',
93+
'neve'
94+
)
9495
);
9596
} finally {
9697
setLoading(false);

inc/core/admin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ public function activate_module( $request ) {
466466

467467
$response = $modules[ $module_slug ]->set_status( 'active', $module_value );
468468

469-
wp_send_json_success( $module_value ? __( 'Module Activated', 'neve' ) : __( 'Module Deactivated', 'neve' ) );
469+
wp_send_json_success( $module_value ? __( 'Module Activated', 'neve' ) : __( 'Module Deactivated.', 'neve' ) );
470470
}
471471

472472
/**

0 commit comments

Comments
 (0)