Hide unused tabs and functionalities #7

Merged
nikugogoi merged 4 commits from ng-hide-unused into main 2022-12-05 11:31:47 +00:00
Showing only changes of commit 55c8826ab3 - Show all commits

View File

@ -13,9 +13,10 @@ import Panel from '../../../components/Panel';
import Toolbar from '../../../components/Toolbar';
// import LogPoller from '../../../components/LogPoller';
import RegistryRecords, { RecordType } from './RegistryRecords';
import RegistryLookup, { LookupType } from './RegistryLookup';
import RegistryStatus from './RegistryStatus';
import RegistryRecords from './RegistryRecords';
// import RegistryRecords, { RecordType } from './RegistryRecords';
const TAB_RECORDS = 'records';
const TAB_STATUS = 'status';
@ -43,8 +44,8 @@ const useStyles = makeStyles(() => ({
const Registry = () => {
const classes = useStyles();
const [tab, setTab] = useState(TAB_RECORDS);
const [type, setType] = useState();
const [scope, setScope] = useState(LookupType.default);
// const [type, setType] = useState();
return (
<Panel
@ -57,9 +58,9 @@ const Registry = () => {
{/* <Tab value={TAB_LOG} label='Log' /> */}
</Tabs>
{tab === TAB_RECORDS && (
{/* {tab === TAB_RECORDS && (
<RecordType type={type} onChange={setType} />
)}
)} */}
{tab === TAB_LOOKUP && (
<LookupType scope={scope} onChange={setScope} />
)}
@ -69,7 +70,8 @@ const Registry = () => {
<TabContext value={tab}>
{tab === TAB_RECORDS && (
<div className={classes.panel}>
<RegistryRecords type={type} />
{/* <RegistryRecords type={type} /> */}
<RegistryRecords />
</div>
)}