Skip to content

Commit 8d54fdb

Browse files
committed
refactor(web): rename the Terraform template generating pending message to Wait...
1 parent 3c86d84 commit 8d54fdb

5 files changed

Lines changed: 20 additions & 20 deletions

File tree

web/src/pages/terraform-template/ARGOCD/argocd.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ const Argocd: FC = () => {
7070

7171
return (
7272
<form onSubmit={handleForm} className="w-full max-w-96">
73-
<div className="rounded-md border border-gray-500">
73+
<div className="border border-gray-500 rounded-md">
7474
<div className="divide-y divide-gray-500">
75-
<div className="flex w-full items-center justify-between px-3 py-3">
75+
<div className="flex items-center justify-between w-full px-3 py-3">
7676
<p>Argo Application</p>
7777
<input
7878
type="checkbox"
@@ -92,7 +92,7 @@ const Argocd: FC = () => {
9292
)}
9393
>
9494
<div
95-
className="flex cursor-pointer items-center justify-between py-3 pl-10 pr-3"
95+
className="flex items-center justify-between py-3 pl-10 pr-3 cursor-pointer"
9696
onClick={() => handleDropdown('sync_policy')}
9797
>
9898
<p>Sync Policy</p>
@@ -134,7 +134,7 @@ const Argocd: FC = () => {
134134
</div>
135135
</div>
136136
</div>
137-
<div className="flex w-full items-center justify-between px-3 py-3">
137+
<div className="flex items-center justify-between w-full px-3 py-3">
138138
<p>Argocd Repository</p>
139139
<input
140140
type="checkbox"
@@ -145,7 +145,7 @@ const Argocd: FC = () => {
145145
onChange={() => handleServices('argocd_repository')}
146146
/>
147147
</div>
148-
<div className="flex w-full items-center justify-between px-3 py-3">
148+
<div className="flex items-center justify-between w-full px-3 py-3">
149149
<p>Application Depends Repository</p>
150150
<input
151151
type="checkbox"
@@ -161,12 +161,12 @@ const Argocd: FC = () => {
161161
<button
162162
type="submit"
163163
disabled={argocdPending || downloadPending}
164-
className="btn mt-3 w-full bg-orange-base text-white hover:bg-orange-base/70 disabled:bg-orange-base/50 disabled:text-white/70"
164+
className="w-full mt-3 text-white btn bg-orange-base hover:bg-orange-base/70 disabled:bg-orange-base/50 disabled:text-white/70"
165165
>
166166
{argocdPending
167-
? 'Generate Terraform...'
167+
? 'Wait...'
168168
: downloadPending
169-
? 'Downloading Template...'
169+
? 'Wait...'
170170
: 'Generate Terraform'}
171171
</button>
172172
</form>

web/src/pages/terraform-template/Docker/docker.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ const Docker: FC = () => {
7878
className="w-full mt-3 text-white btn bg-orange-base hover:bg-orange-base/70 disabled:bg-orange-base/50 disabled:text-white/70"
7979
>
8080
{dockerPending
81-
? 'Generate Terraform...'
81+
? 'Wait...'
8282
: downloadPending
83-
? 'Downloading Template...'
83+
? 'Wait...'
8484
: 'Generate Terraform'}
8585
</button>
8686
</form>

web/src/pages/terraform-template/EC2/ec2.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ const EC2 = () => {
101101
className="w-full mt-3 text-white btn bg-orange-base hover:bg-orange-base/70 disabled:bg-orange-base/50 disabled:text-white/70"
102102
>
103103
{ec2Pending
104-
? 'Generate Terraform...'
104+
? 'Wait...'
105105
: downloadPending
106-
? 'Downloading Template...'
106+
? 'Wait...'
107107
: 'Generate Terraform'}
108108
</button>
109109
</form>

web/src/pages/terraform-template/IAM/iam.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ const IAM: FC = () => {
4747

4848
return (
4949
<form onSubmit={handleForm} className="w-full max-w-96">
50-
<div className="rounded-md border border-gray-500">
50+
<div className="border border-gray-500 rounded-md">
5151
<div className="divide-y divide-gray-500">
52-
<div className="flex w-full items-center justify-between px-3 py-3">
52+
<div className="flex items-center justify-between w-full px-3 py-3">
5353
<p>IAM User</p>
5454
<input
5555
type="checkbox"
@@ -59,7 +59,7 @@ const IAM: FC = () => {
5959
onChange={() => handleServices('iam_user')}
6060
/>
6161
</div>
62-
<div className="flex w-full items-center justify-between px-3 py-3">
62+
<div className="flex items-center justify-between w-full px-3 py-3">
6363
<p>IAM Group</p>
6464
<input
6565
type="checkbox"
@@ -74,12 +74,12 @@ const IAM: FC = () => {
7474
<button
7575
type="submit"
7676
disabled={iamPending || downloadPending}
77-
className="btn mt-3 w-full bg-orange-base text-white hover:bg-orange-base/70 disabled:bg-orange-base/50 disabled:text-white/70"
77+
className="w-full mt-3 text-white btn bg-orange-base hover:bg-orange-base/70 disabled:bg-orange-base/50 disabled:text-white/70"
7878
>
7979
{iamPending
80-
? 'Generate Terraform...'
80+
? 'Wait...'
8181
: downloadPending
82-
? 'Downloading Template...'
82+
? 'Wait...'
8383
: 'Generate Terraform'}
8484
</button>
8585
</form>

web/src/pages/terraform-template/S3/s3.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ const S3: FC = () => {
7878
className="w-full mt-3 text-white btn bg-orange-base hover:bg-orange-base/70 disabled:bg-orange-base/50 disabled:text-white/70"
7979
>
8080
{s3Pending
81-
? 'Generate Terraform...'
81+
? 'Wait...'
8282
: downloadPending
83-
? 'Downloading Template...'
83+
? 'Wait...'
8484
: 'Generate Terraform'}
8585
</button>
8686
</form>

0 commit comments

Comments
 (0)