mirror of
https://github.com/garethgeorge/backrest.git
synced 2026-08-28 03:46:29 +00:00
fix: make tree view the default panel for repo overview
This commit is contained in:
@@ -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 (
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user