Skip to content

Commit

Permalink
Merge pull request #2326 from NDLANO/remove-learningpath-text
Browse files Browse the repository at this point in the history
learningpath: remove redundant info text
  • Loading branch information
katrinewi authored Jan 29, 2025
2 parents 5f50cd5 + ddf4132 commit 3eb7f4d
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { useContext, useEffect, useState } from "react";
import { useTranslation } from "react-i18next";
import { Navigate, useParams } from "react-router-dom";
import { AddLine } from "@ndla/icons";
import { Button, Heading, Spinner, Text } from "@ndla/primitives";
import { Button, Heading, Spinner } from "@ndla/primitives";
import { SafeLinkButton } from "@ndla/safelink";
import { Stack, styled } from "@ndla/styled-system/jsx";
import { HelmetWithTracker, useTracker } from "@ndla/tracker";
Expand Down Expand Up @@ -99,7 +99,6 @@ export const EditLearningpathStepsPage = () => {
<Heading textStyle="heading.small" asChild consumeCss>
<h2>{t("myNdla.learningpath.form.content.title")}</h2>
</Heading>
<Text textStyle="body.large">{t("myNdla.learningpath.form.content.subTitle")}</Text>
<StyledOl>
{data.myNdlaLearningpath.learningsteps.map((step) => (
<LearningpathStepListItem learningpathId={data.myNdlaLearningpath?.id ?? -1} step={step} key={step.id} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { useTranslation } from "react-i18next";
import {
Button,
FieldErrorMessage,
FieldHelper,
FieldLabel,
FieldRoot,
RadioGroupItem,
Expand Down Expand Up @@ -80,7 +79,6 @@ export const LearningpathStepForm = ({ step, onClose, onSave, onDelete }: Props)
render={({ field, fieldState }) => (
<FieldRoot required>
<FieldLabel>{t("myNdla.learningpath.form.content.title")}</FieldLabel>
<FieldHelper>{t("myNdla.learningpath.form.content.subTitle")}</FieldHelper>
<FieldErrorMessage>{fieldState.error?.message}</FieldErrorMessage>
<RadioGroupRoot
onValueChange={(details) => reset(getValuesFromStep(details.value as FormType, step))}
Expand Down
1 change: 0 additions & 1 deletion src/messages/messagesEN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ const messages = {
},
content: {
title: "Append content",
subTitle: "Append content to the learningpath",
resource: {
label: "Article from NDLA",
labelHelper: "Search for an article or paste a link",
Expand Down
1 change: 0 additions & 1 deletion src/messages/messagesNB.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ const messages = {
},
content: {
title: "Legg til innhold",
subTitle: "Legg til innhold til læringsstien",
resource: {
label: "Artikkel fra NDLA",
labelHelper: "Søk etter artikkel eller lim inn en lenke",
Expand Down
1 change: 0 additions & 1 deletion src/messages/messagesNN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ const messages = {
},
content: {
title: "Legg til innhald",
subTitle: "Legg til innhald i læringsstien",
resource: {
label: "Artikkel frå NDLA",
labelHelper: "Søk etter artikkel eller lim inn ei lenke",
Expand Down
1 change: 0 additions & 1 deletion src/messages/messagesSE.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ const messages = {
},
content: {
title: "Legg til innhold",
subTitle: "Legg til innhold til læringsstien",
resource: {
label: "Artikkel fra NDLA",
labelHelper: "Søk etter artikkel eller lim inn en lenke",
Expand Down

0 comments on commit 3eb7f4d

Please sign in to comment.