Changed Presets Tab positioning

This commit is contained in:
Amr osama 2023-10-23 11:13:27 +03:00
parent e658629482
commit 03460c592a

View File

@ -76,9 +76,6 @@ const CollectionSettings = ({ collection }) => {
case 'headers': { case 'headers': {
return <Headers collection={collection} />; return <Headers collection={collection} />;
} }
case 'presets': {
return <Presets collection={collection} />;
}
case 'auth': { case 'auth': {
return <Auth collection={collection} />; return <Auth collection={collection} />;
} }
@ -88,6 +85,9 @@ const CollectionSettings = ({ collection }) => {
case 'tests': { case 'tests': {
return <Test collection={collection} />; return <Test collection={collection} />;
} }
case 'presets': {
return <Presets collection={collection} />;
}
case 'proxy': { case 'proxy': {
return <ProxySettings proxyConfig={proxyConfig} onUpdate={onProxySettingsUpdate} />; return <ProxySettings proxyConfig={proxyConfig} onUpdate={onProxySettingsUpdate} />;
} }
@ -118,9 +118,6 @@ const CollectionSettings = ({ collection }) => {
<div className={getTabClassname('headers')} role="tab" onClick={() => setTab('headers')}> <div className={getTabClassname('headers')} role="tab" onClick={() => setTab('headers')}>
Headers Headers
</div> </div>
<div className={getTabClassname('presets')} role="tab" onClick={() => setTab('presets')}>
Presets
</div>
<div className={getTabClassname('auth')} role="tab" onClick={() => setTab('auth')}> <div className={getTabClassname('auth')} role="tab" onClick={() => setTab('auth')}>
Auth Auth
</div> </div>
@ -130,6 +127,9 @@ const CollectionSettings = ({ collection }) => {
<div className={getTabClassname('tests')} role="tab" onClick={() => setTab('tests')}> <div className={getTabClassname('tests')} role="tab" onClick={() => setTab('tests')}>
Tests Tests
</div> </div>
<div className={getTabClassname('presets')} role="tab" onClick={() => setTab('presets')}>
Presets
</div>
<div className={getTabClassname('proxy')} role="tab" onClick={() => setTab('proxy')}> <div className={getTabClassname('proxy')} role="tab" onClick={() => setTab('proxy')}>
Proxy Proxy
</div> </div>