fix: make tree view the default panel for repo overview

This commit is contained in:
Gareth George
2024-03-30 09:14:39 +00:00
parent 8c6822c17c
commit fdffff5405
+11 -11
View File
@@ -43,16 +43,6 @@ export const RepoView = ({ repo }: React.PropsWithChildren<{ repo: Repo }>) => {
const items = [
{
key: "1",
label: "Stats",
children: (
<>
<StatsPanel repoId={repo.id!} />
</>
),
destroyInactiveTabPane: true,
},
{
key: "2",
label: "Tree View",
children: (
<>
@@ -65,7 +55,7 @@ export const RepoView = ({ repo }: React.PropsWithChildren<{ repo: Repo }>) => {
destroyInactiveTabPane: true,
},
{
key: "3",
key: "2",
label: "Operation List",
children: (
<>
@@ -79,6 +69,16 @@ export const RepoView = ({ repo }: React.PropsWithChildren<{ repo: Repo }>) => {
),
destroyInactiveTabPane: true,
},
{
key: "3",
label: "Stats",
children: (
<>
<StatsPanel repoId={repo.id!} />
</>
),
destroyInactiveTabPane: true,
},
]
return (
<>