@@ -31,7 +31,7 @@ import { Button } from "~/components/primitives/Buttons";
31
31
import { Fieldset } from "~/components/primitives/Fieldset" ;
32
32
import { FormButtons } from "~/components/primitives/FormButtons" ;
33
33
import { FormError } from "~/components/primitives/FormError" ;
34
- import { Header2 } from "~/components/primitives/Headers" ;
34
+ import { Header2 , Header3 } from "~/components/primitives/Headers" ;
35
35
import { Hint } from "~/components/primitives/Hint" ;
36
36
import { Input } from "~/components/primitives/Input" ;
37
37
import { InputGroup } from "~/components/primitives/InputGroup" ;
@@ -171,7 +171,7 @@ export const action: ActionFunction = async ({ request, params }) => {
171
171
} ) ;
172
172
173
173
return redirectWithSuccessMessage (
174
- organizationPath ( { slug : organizationSlug } ) ,
174
+ organizationSettingsPath ( { slug : organizationSlug } ) ,
175
175
request ,
176
176
`Organization renamed to ${ submission . value . organizationName } `
177
177
) ;
@@ -226,7 +226,7 @@ export const action: ActionFunction = async ({ request, params }) => {
226
226
return redirectWithSuccessMessage (
227
227
organizationSettingsPath ( { slug : organizationSlug } ) ,
228
228
request ,
229
- `Updated logo `
229
+ `Updated icon `
230
230
) ;
231
231
}
232
232
}
@@ -286,17 +286,20 @@ export default function Page() {
286
286
287
287
< PageBody >
288
288
< MainHorizontallyCenteredContainer >
289
- < div className = "flex flex-col gap-4" >
289
+ < div className = "mb-3 border-b border-grid-dimmed pb-3" >
290
+ < Header2 > Settings</ Header2 >
291
+ </ div >
292
+ < div className = "flex flex-col gap-6" >
290
293
< div >
291
294
< LogoForm organization = { organization } />
292
295
</ div >
293
296
294
297
< div >
295
298
< Form method = "post" { ...renameForm . props } >
296
299
< input type = "hidden" name = "action" value = "rename" />
297
- < Fieldset >
300
+ < Fieldset className = "gap-y-0" >
298
301
< InputGroup fullWidth >
299
- < Label htmlFor = { organizationName . id } > Rename your organization </ Label >
302
+ < Label htmlFor = { organizationName . id } > Organization name </ Label >
300
303
< Input
301
304
{ ...conform . input ( organizationName , { type : "text" } ) }
302
305
defaultValue = { organization . title }
@@ -310,13 +313,14 @@ export default function Page() {
310
313
confirmButton = {
311
314
< Button
312
315
type = "submit"
313
- variant = { "primary /small" }
316
+ variant = { "secondary /small" }
314
317
disabled = { isRenameLoading }
315
318
LeadingIcon = { isRenameLoading ? SpinnerWhite : undefined }
316
319
>
317
320
Rename organization
318
321
</ Button >
319
322
}
323
+ className = "border-t-0"
320
324
/>
321
325
</ Fieldset >
322
326
</ Form >
@@ -327,7 +331,7 @@ export default function Page() {
327
331
< Form
328
332
method = "post"
329
333
{ ...deleteForm . props }
330
- className = "max-w-md rounded-sm border border-rose-500/40"
334
+ className = "w-full rounded-sm border border-rose-500/40"
331
335
>
332
336
< input type = "hidden" name = "action" value = "delete" />
333
337
< Fieldset className = "p-4" >
@@ -384,10 +388,10 @@ function LogoForm({ organization }: { organization: { avatar: Avatar } }) {
384
388
385
389
return (
386
390
< Fieldset >
387
- < InputGroup >
388
- < Label > Logo </ Label >
389
- < div className = "flex items-end gap-2" >
390
- < div className = "grid size-20 place-items-center overflow-hidden rounded-sm border border-charcoal-700 bg-charcoal-850 " >
391
+ < InputGroup fullWidth >
392
+ < Label > Icon </ Label >
393
+ < div className = "flex w-full items-end justify-between gap-2" >
394
+ < div className = "grid place-items-center overflow-hidden rounded-sm border border-charcoal-750 bg-background-bright " >
391
395
< Avatar avatar = { avatar } className = "size-20" includePadding />
392
396
</ div >
393
397
{ /* Letters */ }
0 commit comments