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

Use new Input component #1912

Merged
merged 3 commits into from
Jul 12, 2024
Merged

Use new Input component #1912

merged 3 commits into from
Jul 12, 2024

Conversation

katrinewi
Copy link
Contributor

No description provided.

@katrinewi katrinewi marked this pull request as ready for review July 11, 2024 11:24
@katrinewi katrinewi requested a review from a team July 11, 2024 11:26
@Jonas-C
Copy link
Contributor

Jonas-C commented Jul 12, 2024

Du har glemt et TextArea i FlagPostModalContent

)}
/>
<Controller
control={control}
name={"parentCategoryId"}
rules={{ required: false }}
render={({ field, fieldState }) => (
<FormControl id="parentCategoryId" isInvalid={!!fieldState.error?.message}>
<StyledLabel textStyle="label-small">{t("myNdla.arena.admin.category.form.parentCategoryId")}</StyledLabel>
<FieldRoot invalid={!!fieldState.error?.message}>
Copy link
Contributor

Choose a reason for hiding this comment

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

Her brekker du koblingen mellom label og select. Du kan wrappe Select med en <Field.Select asChild>. Vi eksporterer den ikke, men ark har den!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Var ikke meningen å ta med de endringene egentlig 😅 revertert nå!

src/containers/MyNdla/Arena/components/ArenaForm.tsx Outdated Show resolved Hide resolved
src/containers/MyNdla/Arena/components/ArenaForm.tsx Outdated Show resolved Hide resolved
src/containers/MyNdla/Arena/components/ArenaForm.tsx Outdated Show resolved Hide resolved
@katrinewi katrinewi merged commit bcc95f1 into master Jul 12, 2024
6 checks passed
@katrinewi katrinewi deleted the new-input-components branch July 12, 2024 10:39
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