Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

249
Vistas
Failed prop type: Invalid prop `lg` supplied to `ForwardRef(Grid)`

This code is responsible for displaying the components on the page. But in the console I get the following warnings:

Warning: Failed prop type: Invalid prop lg supplied to ForwardRef(Grid), expected one of type [number, boolean].

Warning: Failed prop type: Invalid prop sm supplied to ForwardRef(Grid), expected one of type [number, boolean].

Warning: Failed prop type: Invalid prop xs supplied to ForwardRef(Grid), expected one of type [number, boolean].

As I understand it, I'm using Grid incorrectly. But I still can’t figure out how to transfer this one so as not to destroy this page markup. Please tell me how to get rid of these warnings

    const GridProps = {
    container: true,
    xs: '12', sm: '7', lg: '9',
}

export default function Devices() {
    const urlParams = useParams();

    return (
        <Grid className={classes.containerStyle}>
            
            <Grid className={classes.widthAndHeight}>
                <Grid {...GridProps}>
                    
                </Grid>
            </Grid>
        </Grid>
    );
}
about 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

Warning: Failed prop type: Invalid prop lg supplied to ForwardRef(Grid), expected one of type [number, boolean].

The Grid component expects lg, md, sm in these options number or boolean type, and you are using a string type.

lg = 'auto' | number | bool Grid Props

Correct should be:

const GridProps = {
  container: true,
  xs: 12,
  sm: 7,
  lg: 9,
  item: true,
};
about 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda