-
Notifications
You must be signed in to change notification settings - Fork 0
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
Disclaimer to article #530
Conversation
b3d4a16
to
9f08271
Compare
9f08271
to
f789ca8
Compare
src/api/articleApi.ts
Outdated
context: Context, | ||
): Promise<GQLTransformedDisclaimerContent> => { | ||
if (!article.disclaimer?.disclaimer) return { content: "" }; | ||
const { content } = await transformArticle(article.disclaimer.disclaimer, context, undefined, {}); |
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.
Ingen transform-opts her?
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.
Jeg tror ikke det trengs, uenig? 🤔
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.
Det kommer vel litt an på hva som blir plassert inni disclaimeren, gjør det ikke? Dersom vi plutselig begynner å tillate mer komplekse komponenter der inne blir det jo veldig relevant
f789ca8
to
a1ece8f
Compare
a1ece8f
to
9252eb5
Compare
Kommer PR i ndla-frontend som skal vise frem disclaimer!