PluginProbe
Pay with Vipps and MobilePay for WooCommerce / 6.1.4
Pay with Vipps and MobilePay for WooCommerce v6.1.4
6.2.2 6.2.1 6.2.0 6.1.10 6.1.9 6.1.8 6.1.7 6.1.6 6.1.5 6.1.4 6.1.3 6.1.2 6.1.1 6.1.0 6.0.5 6.0.4 6.0.3 6.0.2 6.0.1 6.0.0 5.4.3 5.4.2 5.4.1 5.4.0 5.3.4 All 184 releases
woo-vipps / payment / src / admin / settings / src / App.tsx

App.tsx in Pay with Vipps and MobilePay for WooCommerce 6.1.4, at payment/src/admin/settings/src/App.tsx

25 lines 641 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import './App.css';
2 import { AdminSettings } from './components/admin-settings/admin-settings';
3 import { getMetadata } from './lib/wp-data';
4 import { WPOptionsProvider } from './wp-options-provider';
5
6 /**
7 * Renders the main application component.
8 *
9 * @returns The rendered application component.
10 */
11 function App(): JSX.Element {
12 const isAdminSettingsPage = getMetadata('page') === 'admin_settings_page';
13 return (
14 <div className='vipps-mobilepay-react-admin-page'>
15 {isAdminSettingsPage && (
16 <WPOptionsProvider>
17 <AdminSettings />
18 </WPOptionsProvider>
19 )}
20 </div>
21 );
22 }
23
24 export default App;
25