Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

245
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!