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

feature/CPW-06 #12

Merged
merged 3 commits into from
Jan 3, 2022

Conversation

marcelob12
Copy link
Contributor

No description provided.

@wmoralesdev
Copy link
Member

Tenés que pasar el archivo a TS, ya que eso estamos usando, además que el componente debe ser funcional y no de clase

@wmoralesdev wmoralesdev self-requested a review December 31, 2021 05:41
@wmoralesdev wmoralesdev linked an issue Dec 31, 2021 that may be closed by this pull request
@@ -0,0 +1,22 @@
import Document, { Html, Head, Main, NextScript } from 'next/document'
class MyDocument extends Document {
Copy link
Member

Choose a reason for hiding this comment

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

Convertir a componente funcional, ver desarrollo

@@ -0,0 +1,22 @@
import Document, { Html, Head, Main, NextScript } from 'next/document'
Copy link
Member

Choose a reason for hiding this comment

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

Convertir a archivo tsx

@wmoralesdev wmoralesdev changed the title feact:document with new HTML struct feature/CPW-06 Dec 31, 2021
@@ -0,0 +1,13 @@
import { Html, Head, Main, NextScript } from 'next/document'

export default function Document() {
Copy link
Member

Choose a reason for hiding this comment

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

Convertir a componente funcional, pero con sintaxis de arrow function

const Document = () => (
// Etiquetas aca
)

@wmoralesdev wmoralesdev merged commit 28f74a3 into develop Jan 3, 2022
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.

feature/CPW-06
2 participants