|
109 | 109 | </button> |
110 | 110 | </form> |
111 | 111 | {:else} |
112 | | - <div class="flex justify-around"> |
113 | | - <form method="POST" action="?/displayName" class="my-32 flex place-items-center" use:dbaEnhance> |
114 | | - <div class="my-4"> |
115 | | - <label for="dba">Invoice display name:</label> |
116 | | - <input class="my-2 input" name="dba" id="dba" bind:value={$dbaForm.dba} /> |
117 | | - {#if $dbaErrors.dba} |
118 | | - <div |
119 | | - class="max-h-24 overflow-x-hidden overflow-y-scroll rounded-md bg-surface-700 text-error-500" |
120 | | - > |
121 | | - {#each $dbaErrors.dba as err (err)} |
122 | | - {err} |
123 | | - {/each} |
124 | | - </div> |
125 | | - {/if} |
126 | | - </div> |
127 | | - <button class="mx-4 mt-6 btn h-10 preset-filled-secondary-500">Update</button> |
128 | | - </form> |
| 112 | + <form method="POST" action="?/displayName" class="mx-auto my-32 flex justify-center" use:dbaEnhance> |
| 113 | + <div class="my-4"> |
| 114 | + <label for="dba">Invoice display name:</label> |
| 115 | + <input class="my-2 input" name="dba" id="dba" bind:value={$dbaForm.dba} /> |
| 116 | + {#if $dbaErrors.dba} |
| 117 | + <div |
| 118 | + class="max-h-24 overflow-x-hidden overflow-y-scroll rounded-md bg-surface-700 text-error-500" |
| 119 | + > |
| 120 | + {#each $dbaErrors.dba as err (err)} |
| 121 | + {err} |
| 122 | + {/each} |
| 123 | + </div> |
| 124 | + {/if} |
| 125 | + </div> |
| 126 | + <button class="mx-4 mt-6 btn h-10 preset-filled-secondary-500">Update</button> |
| 127 | + </form> |
129 | 128 |
|
130 | | - <form method="POST" action="?/updateStripe" class="my-32 block place-items-center"> |
131 | | - <div class="my-4 grid"> |
132 | | - <span>Account information</span> |
133 | | - <button class="my-2 btn h-10 preset-filled-secondary-500"> Update stripe connected account </button> |
134 | | - </div> |
135 | | - </form> |
136 | | - </div> |
| 129 | + <form method="POST" action="?/onboardStripe" class="flex justify-center"> |
| 130 | + <button class="my-2 btn h-10 preset-filled-secondary-500"> Update stripe connected account </button> |
| 131 | + </form> |
137 | 132 |
|
138 | 133 | {#if account} |
139 | 134 | {#if account.requirements?.currently_due && account.requirements?.currently_due.length > 0} |
|
153 | 148 | </div> |
154 | 149 | {/if} |
155 | 150 |
|
156 | | - <form method="POST" action="?/stripeDashboard" class="my-32 block place-items-center"> |
| 151 | + <form method="POST" action="?/stripeDashboard" class="flex justify-center"> |
157 | 152 | <button class="my-2 btn h-10 preset-filled-secondary-500"> Stripe Dashboard </button> |
158 | 153 | </form> |
159 | 154 | {/if} |
|
0 commit comments