-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Wire up favicon form #2680
Conversation
<InputRowItem width={50}> | ||
<PublicFileUploadButton /> | ||
<InputRowItem width={formik.values.favicon ? 90 : 50}> | ||
<ImgInput |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've updated this to use the wrapper ImgInput
component which gives us a preview and a way to remove the image.
I'll open up a very small follow-on PR to make this change to the Logo form shortly to keep this visually and behaviorally consistent.
@@ -39,8 +60,16 @@ export const FaviconForm: React.FC = () => { | |||
input={ | |||
<InputRow> | |||
<InputRowLabel>Favicon:</InputRowLabel> | |||
<InputRowItem width={50}> | |||
<PublicFileUploadButton /> | |||
<InputRowItem width={formik.values.favicon ? 90 : 50}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resizing this on upload looks better to me than keeping it wide the whole time - very open to opinions here if this jump in not consistent / a bit weird @ianjon3s
@@ -139,7 +139,7 @@ const DesignSettings: React.FC = () => { | |||
<ThemeAndLogoForm team={team} onSuccess={() => setOpen(true)} /> | |||
<ButtonForm team={team} onSuccess={() => setOpen(true)} /> | |||
<TextLinkForm team={team} onSuccess={() => setOpen(true)} /> | |||
<FaviconForm /> | |||
<FaviconForm team={team} onSuccess={() => setOpen(true)} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a little repetition with some of these props and form behaviours - I'll look at a small follow on PR to try and tidy this up 👌
Removed vultr server and associated DNS entries |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Working as expected for me, looks great 👍
What does this PR do?
/preview
and/unpublished
routes if one is set in DB for teamTo test
/preview
and/unpublished
routesDemo: https://2680.planx.pizza/barking-and-dagenham/backup-dec23-article4-barkinganddagenham-manual-constraints/preview?analytics=false