Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
Shelob9 committed Dec 30, 2022
1 parent da7660a commit 2da02bf
Showing 1 changed file with 9 additions and 19 deletions.
28 changes: 9 additions & 19 deletions src/settings/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,43 +2,33 @@ import { render } from 'react-dom';

import React from 'react';

import {
Tabs,

} from '@imaginary-machines/wp-admin-components';
import { Tabs } from '@imaginary-machines/wp-admin-components';

import SettingsForm from './settingsTab';
const tabs = [
{
children: <div>Tab One Content</div>,
id: 'welcome',
label: 'Welcome'
label: 'Welcome',
},
{
children: (<SettingsForm />),
children: <SettingsForm />,
id: 'settings',
label: 'Settings'
label: 'Settings',
},
{
children: <div>Tab Three Content</div>,
id: 'account',
label: 'Account'
}
label: 'Account',
},
];

const USE_TABS = false;
const App = () => {
if( ! USE_TABS ) {
return (
<SettingsForm />
);
if ( ! USE_TABS ) {
return <SettingsForm />;
}
return (
<Tabs
initialTab="settings"
tabs={tabs}
/>
)
return <Tabs initialTab="settings" tabs={ tabs } />;
};

render( <App />, document.getElementById( 'ufo-ai-settings' ) );

0 comments on commit 2da02bf

Please sign in to comment.