-
Notifications
You must be signed in to change notification settings - Fork 1
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/upgradefileupload #1633
Feat/upgradefileupload #1633
Conversation
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.
Se kommentarer
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.
Behold kommentarene som var på line 87, 89 og 99
label?: ReactNode; | ||
existing_url?: string; |
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.
existing_url?: string; | |
localFileUrl?: string; |
og for resten seff.
<SamfFormField | ||
field="file" | ||
type="file" | ||
props={{ existing_url: 'http://localhost:3000/src/assets/logos/uka.png' }} | ||
/> |
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.
Dette bør vel kun rendres hvis stillingen har mulighet for fil opplasting.
Vi bruker ikke Samfform lengre btw. Gått over til ReactHook-form
@@ -132,6 +133,7 @@ export const SamfFormGenerators: Record<SamfFormFieldType, GeneratorFunction<any | |||
date_time: makeStandardInputFunction<Date>('datetime-local'), | |||
date: makeStandardInputFunction<Date>('date'), | |||
time: makeStandardInputFunction<Date>('time'), | |||
file: makeFilePickerFunction('any'), |
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.
Vi bruker ikke Samfform lengre btw. Gått over til ReactHook-form
<SamfFormField | ||
field="file" | ||
type="file" | ||
props={{ existing_url: 'http://localhost:3000/src/assets/logos/uka.png' }} |
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.
trengs det en default her?
Oja okay, da får jeg vell fjerne denne dersom vi heller bruker react hook form |
Ja, gjerne lukk denne om du ser den ikke trengs med tanke på at vi bruke React Hook form |
File upload was a bit restricted, added any type and fixed up design