Skip to content
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

Closed
wants to merge 4 commits into from
Closed

Feat/upgradefileupload #1633

wants to merge 4 commits into from

Conversation

magsyg
Copy link
Contributor

@magsyg magsyg commented Dec 7, 2024

File upload was a bit restricted, added any type and fixed up design

@magsyg magsyg self-assigned this Dec 7, 2024
Copy link
Contributor

@Snorre98 Snorre98 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Se kommentarer

Copy link
Contributor

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;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
existing_url?: string;
localFileUrl?: string;

og for resten seff.

Comment on lines +212 to +216
<SamfFormField
field="file"
type="file"
props={{ existing_url: 'http://localhost:3000/src/assets/logos/uka.png' }}
/>
Copy link
Contributor

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'),
Copy link
Contributor

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' }}
Copy link
Contributor

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?

@magsyg
Copy link
Contributor Author

magsyg commented Dec 11, 2024

Oja okay, da får jeg vell fjerne denne dersom vi heller bruker react hook form

@Snorre98
Copy link
Contributor

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

@magsyg magsyg closed this Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants