-
Notifications
You must be signed in to change notification settings - Fork 1
SBIT-266: subscription url or landing management added #248
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
Conversation
const data = useFooter() | ||
const dataSubscription = data?.allStrapiLayout?.nodes[0]?.footer?.subscription | ||
const subscriptionUrl = dataSubscription?.url | ||
const subscriptionLanding = data?.allStrapiLayout?.nodes[0]?.footer?.subscription?.landing_page?.slug |
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.
aca no iria data?.allStrapi... ya que lo tenes en la constante dataSubscription
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.
Cierto! Ahi corrijo!
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.
borrar la constante dataSubscription, ya que asi no se usa mas
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.
La está usando para mostrar el texto, que es dataSubscription.title
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.
ah ok..entonces reemplazar
const subscriptionUrl = data?.allStrapiLayout?.nodes[0]?.footer?.subscription?.url
const subscriptionLanding = data?.allStrapiLayout?.nodes[0]?.footer?.subscription?.landing_page?.slug
por
const subscriptionUrl = dataSubscription?.url
const subscriptionLanding = dataSubscription?.landing_page?.slug
para no repetir codigo
const data = useFooter() | ||
const dataSubscription = data?.allStrapiLayout?.nodes[0]?.footer?.subscription | ||
const subscriptionUrl = dataSubscription?.url | ||
const subscriptionLanding = data?.allStrapiLayout?.nodes[0]?.footer?.subscription?.landing_page?.slug |
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.
borrar la constante dataSubscription, ya que asi no se usa mas
const data = useFooter() | ||
const dataSubscription = data?.allStrapiLayout?.nodes[0]?.footer?.subscription | ||
const subscriptionUrl = dataSubscription?.url | ||
const subscriptionLanding = data?.allStrapiLayout?.nodes[0]?.footer?.subscription?.landing_page?.slug |
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.
ah ok..entonces reemplazar
const subscriptionUrl = data?.allStrapiLayout?.nodes[0]?.footer?.subscription?.url
const subscriptionLanding = data?.allStrapiLayout?.nodes[0]?.footer?.subscription?.landing_page?.slug
por
const subscriptionUrl = dataSubscription?.url
const subscriptionLanding = dataSubscription?.landing_page?.slug
para no repetir codigo
|
No description provided.