Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

254
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda