@@ -31,7 +31,7 @@ import { Button } from "~/components/primitives/Buttons";
3131import { Fieldset } from "~/components/primitives/Fieldset" ;
3232import { FormButtons } from "~/components/primitives/FormButtons" ;
3333import { FormError } from "~/components/primitives/FormError" ;
34- import { Header2 } from "~/components/primitives/Headers" ;
34+ import { Header2 , Header3 } from "~/components/primitives/Headers" ;
3535import { Hint } from "~/components/primitives/Hint" ;
3636import { Input } from "~/components/primitives/Input" ;
3737import { InputGroup } from "~/components/primitives/InputGroup" ;
@@ -171,7 +171,7 @@ export const action: ActionFunction = async ({ request, params }) => {
171171 } ) ;
172172
173173 return redirectWithSuccessMessage (
174- organizationPath ( { slug : organizationSlug } ) ,
174+ organizationSettingsPath ( { slug : organizationSlug } ) ,
175175 request ,
176176 `Organization renamed to ${ submission . value . organizationName } `
177177 ) ;
@@ -226,7 +226,7 @@ export const action: ActionFunction = async ({ request, params }) => {
226226 return redirectWithSuccessMessage (
227227 organizationSettingsPath ( { slug : organizationSlug } ) ,
228228 request ,
229- `Updated logo `
229+ `Updated icon `
230230 ) ;
231231 }
232232 }
@@ -286,17 +286,20 @@ export default function Page() {
286286
287287 < PageBody >
288288 < 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" >
290293 < div >
291294 < LogoForm organization = { organization } />
292295 </ div >
293296
294297 < div >
295298 < Form method = "post" { ...renameForm . props } >
296299 < input type = "hidden" name = "action" value = "rename" />
297- < Fieldset >
300+ < Fieldset className = "gap-y-0" >
298301 < InputGroup fullWidth >
299- < Label htmlFor = { organizationName . id } > Rename your organization </ Label >
302+ < Label htmlFor = { organizationName . id } > Organization name </ Label >
300303 < Input
301304 { ...conform . input ( organizationName , { type : "text" } ) }
302305 defaultValue = { organization . title }
@@ -310,13 +313,14 @@ export default function Page() {
310313 confirmButton = {
311314 < Button
312315 type = "submit"
313- variant = { "primary /small" }
316+ variant = { "secondary /small" }
314317 disabled = { isRenameLoading }
315318 LeadingIcon = { isRenameLoading ? SpinnerWhite : undefined }
316319 >
317320 Rename organization
318321 </ Button >
319322 }
323+ className = "border-t-0"
320324 />
321325 </ Fieldset >
322326 </ Form >
@@ -327,7 +331,7 @@ export default function Page() {
327331 < Form
328332 method = "post"
329333 { ...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"
331335 >
332336 < input type = "hidden" name = "action" value = "delete" />
333337 < Fieldset className = "p-4" >
@@ -384,10 +388,10 @@ function LogoForm({ organization }: { organization: { avatar: Avatar } }) {
384388
385389 return (
386390 < 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 " >
391395 < Avatar avatar = { avatar } className = "size-20" includePadding />
392396 </ div >
393397 { /* Letters */ }
0 commit comments