Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.

Commit 9ccbf16

Browse files
author
Noah Hanjun Lee
authored
Switch the Lock tab (#132)
* Switch the Lock tab * Fix the tag position
1 parent 622b602 commit 9ccbf16

File tree

2 files changed

+16
-10
lines changed

2 files changed

+16
-10
lines changed

ui/src/components/DeployForm.tsx

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,11 @@ export default function DeployForm(props: DeployFormProps): JSX.Element {
130130
null
131131

132132
return {
133-
label: <span>
134-
<Text className="gitploy-code" code>{branch.name}</Text>{tag}
135-
</span>,
133+
label: (
134+
<span>
135+
<Text className="gitploy-code" code>{branch.name}</Text>{tag}
136+
</span>
137+
),
136138
value: branch.name
137139
} as Option
138140
}
@@ -164,7 +166,11 @@ export default function DeployForm(props: DeployFormProps): JSX.Element {
164166
null
165167

166168
return {
167-
label: <Text className="gitploy-code" code>{tag.name} {deploymentTag}</Text>,
169+
label: (
170+
<span>
171+
<Text className="gitploy-code" code>{tag.name}</Text>{deploymentTag}
172+
</span>
173+
),
168174
value: tag.name
169175
} as Option
170176
}

ui/src/views/Repo.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,15 @@ export default function Repo(): JSX.Element {
8484
<Menu.Item key="home">
8585
<a href={`/${namespace}/${name}`}>Home</a>
8686
</Menu.Item>
87-
<Menu.Item key="lock">
88-
<a href={`/${namespace}/${name}/lock`}>Lock</a>
89-
</Menu.Item>
9087
<Menu.Item key="deploy">
9188
<a href={`/${namespace}/${name}/deploy`}>Deploy</a>
9289
</Menu.Item>
9390
<Menu.Item key="rollback">
9491
<a href={`/${namespace}/${name}/rollback`}>Rollback</a>
9592
</Menu.Item>
93+
<Menu.Item key="lock">
94+
<a href={`/${namespace}/${name}/lock`}>Lock</a>
95+
</Menu.Item>
9696
<Menu.Item key="settings">
9797
<a href={`/${namespace}/${name}/settings`}>Settings</a>
9898
</Menu.Item>
@@ -105,15 +105,15 @@ export default function Repo(): JSX.Element {
105105
<div>
106106
{(!tab || tab === "home") ? <RepoHome /> : null}
107107
</div>
108-
<div>
109-
{(tab === "lock")? <RepoLock /> : null}
110-
</div>
111108
<div>
112109
{(tab === "deploy") ? <RepoDeploy /> : null}
113110
</div>
114111
<div>
115112
{(tab === "rollback")? <RepoRollabck /> : null}
116113
</div>
114+
<div>
115+
{(tab === "lock")? <RepoLock /> : null}
116+
</div>
117117
<div>
118118
{(tab === "settings")? <RepoSettings /> : null}
119119
</div>

0 commit comments

Comments
 (0)