From 4b565359b1fb096c5e17a625168b0cbe7df346f4 Mon Sep 17 00:00:00 2001 From: Nirbhay Date: Mon, 11 Nov 2024 13:38:08 +0530 Subject: [PATCH] update: plugin settings context filename and relevant imports --- modules/settings/assets/js/admin.js | 2 +- modules/settings/assets/js/app.js | 2 +- .../contexts/{plugin-settings-context.js => plugin-settings.js} | 0 modules/settings/assets/js/hooks/use-auth.js | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename modules/settings/assets/js/contexts/{plugin-settings-context.js => plugin-settings.js} (100%) diff --git a/modules/settings/assets/js/admin.js b/modules/settings/assets/js/admin.js index a107d37..a40129e 100644 --- a/modules/settings/assets/js/admin.js +++ b/modules/settings/assets/js/admin.js @@ -2,7 +2,7 @@ import { ThemeProvider } from '@elementor/ui/styles'; import { StrictMode, Fragment, createRoot } from '@wordpress/element'; import App from './app'; import AdminTopBar from './components/admin-top-bar'; -import { PluginSettingsProvider } from './contexts/plugin-settings-context'; +import { PluginSettingsProvider } from './contexts/plugin-settings'; import { SettingsProvider, NotificationsProvider } from './hooks'; const rootNode = document.getElementById( 'ea11y-app' ); diff --git a/modules/settings/assets/js/app.js b/modules/settings/assets/js/app.js index e3d93e0..83ba765 100644 --- a/modules/settings/assets/js/app.js +++ b/modules/settings/assets/js/app.js @@ -2,7 +2,7 @@ import '../css/style.css'; import DirectionProvider from '@elementor/ui/DirectionProvider'; import { ThemeProvider } from '@elementor/ui/styles'; import { ConnectModal, Notifications } from './components'; -import { usePluginSettingsContext } from './contexts/plugin-settings-context'; +import { usePluginSettingsContext } from './contexts/plugin-settings'; import { useNotificationSettings } from './hooks'; const App = () => { diff --git a/modules/settings/assets/js/contexts/plugin-settings-context.js b/modules/settings/assets/js/contexts/plugin-settings.js similarity index 100% rename from modules/settings/assets/js/contexts/plugin-settings-context.js rename to modules/settings/assets/js/contexts/plugin-settings.js diff --git a/modules/settings/assets/js/hooks/use-auth.js b/modules/settings/assets/js/hooks/use-auth.js index b46c7ce..65c0fc5 100644 --- a/modules/settings/assets/js/hooks/use-auth.js +++ b/modules/settings/assets/js/hooks/use-auth.js @@ -1,6 +1,6 @@ import API from '../api'; import { UPGRADE_LINK } from '../constants'; -import { usePluginSettingsContext } from '../contexts/plugin-settings-context'; +import { usePluginSettingsContext } from '../contexts/plugin-settings'; export const useAuth = () => { const { subscriptionId } = 123;