wip
This commit is contained in:
@@ -18,14 +18,22 @@ export const Machine = (props: RouteSectionProps) => {
|
||||
const machineName = useMachineName();
|
||||
const machineQuery = useMachineQuery(clanURI, machineName);
|
||||
|
||||
const sectionProps = { clanURI, machineName, machineQuery };
|
||||
const sidebarPane = (machineName: string) => {
|
||||
const machineQuery = useMachineQuery(clanURI, machineName);
|
||||
|
||||
return (
|
||||
<Show when={useMachineName()} keyed>
|
||||
<SidebarPane title={useMachineName()} onClose={onClose}>
|
||||
const sectionProps = { clanURI, machineName, machineQuery };
|
||||
|
||||
return (
|
||||
<SidebarPane title={machineName} onClose={onClose}>
|
||||
<SectionGeneral {...sectionProps} />
|
||||
<SectionTags {...sectionProps} />
|
||||
</SidebarPane>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<Show when={useMachineName()} keyed>
|
||||
{sidebarPane(useMachineName())}
|
||||
</Show>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user