SlideShare a Scribd company logo
react/mui:
question: For some reason getting the following error from link. How do I fix this?
note: "/" is in app routes and wrapped around browserouter. Only link part cause error on page it
seems. Without it it works fines
////////////sidebar.js/////////////
import { Box, IconButton, Typography, useTheme } from "@mui/material";
import React from 'react';
import { useState } from 'react';
import{ ProSidebar, Menu, MenuItem} from 'react-pro-sidebar';
import "react-pro-sidebar/dist/css/styles.css";
import { Link } from "react-router-dom";
import { tokens } from '../../theme';
import HomeOutlinedIcon from '@mui/icons-material/HomeOutlined';
import PeopleAltOutlinedIcon from '@mui/icons-material/PeopleAltOutlined';
import ReceiptLongOutlinedIcon from '@mui/icons-material/ReceiptLongOutlined';
import CalendarMonthOutlinedIcon from '@mui/icons-material/CalendarMonthOutlined';
import HelpOutlineOutlinedIcon from '@mui/icons-material/HelpOutlineOutlined';
import BarChartOutlinedIcon from '@mui/icons-material/BarChartOutlined';
import PieChartOutlineOutlinedIcon from '@mui/icons-material/PieChartOutlineOutlined';
import ViewTimelineOutlinedIcon from '@mui/icons-material/ViewTimelineOutlined';
import MenuOutlinedIcon from '@mui/icons-material/MenuOutlined';
import MapOutlinedIcon from '@mui/icons-material/MapOutlined';
import LightModeOutlined from "@mui/icons-material/LightModeOutlined";
import ContactPageOutlinedIcon from '@mui/icons-material/ContactPageOutlined';
// Item component
const Item = ( { title , to, icon, selected , setSelected}) =>{
const theme = useTheme();
const colors = tokens(theme.palette.mode);
return(
setSelected(title)}
icon={icon}
>
{title}
)
}
function Sidebar() {
const theme = useTheme();
const colors = tokens(theme.palette.mode);
const [isClosed, setIsClosed] = useState(false);
const [selected, setSelected] = useState("Dashboard")
return (
setIsClosed(!isClosed)}
icon={isClosed ? : undefined}
style={{
margin: "10px 0 20px 0",
color: colors.grey[100],
}}
>
{!isClosed && (
Admin
setIsClosed(!isClosed)}>
)}
{!isClosed && (
{/* {user profile } */}
Sleeping cat
SC Admin
)}
{/*Menu options */}
}
selected={selected}
setSelected={setSelected}
/>
)
}
export default Sidebar

More Related Content

Similar to reactmuiquestion For some reason getting the following error fr.pdf

Angular 2 binding
Angular 2  bindingAngular 2  binding
Angular 2 binding
Nathan Krasney
 
Bootiful Development with Spring Boot and Angular - RWX 2018
Bootiful Development with Spring Boot and Angular - RWX 2018Bootiful Development with Spring Boot and Angular - RWX 2018
Bootiful Development with Spring Boot and Angular - RWX 2018
Matt Raible
 
Angular2RoutingSetupByShubham
Angular2RoutingSetupByShubhamAngular2RoutingSetupByShubham
Angular2RoutingSetupByShubhamShubham Verma
 
How to Build SPA with Vue Router 2.0
How to Build SPA with Vue Router 2.0How to Build SPA with Vue Router 2.0
How to Build SPA with Vue Router 2.0
Takuya Tejima
 
Building a TV show with Angular, Bootstrap, and Web Services
Building a TV show with Angular, Bootstrap, and Web ServicesBuilding a TV show with Angular, Bootstrap, and Web Services
Building a TV show with Angular, Bootstrap, and Web Services
David Giard
 
Jan 2017 - a web of applications (angular 2)
Jan 2017 - a web of applications (angular 2)Jan 2017 - a web of applications (angular 2)
Jan 2017 - a web of applications (angular 2)
Kasper Reijnders
 
Паразитируем на React-экосистеме (Angular 4+) / Алексей Охрименко (IPONWEB)
Паразитируем на React-экосистеме (Angular 4+) / Алексей Охрименко (IPONWEB)Паразитируем на React-экосистеме (Angular 4+) / Алексей Охрименко (IPONWEB)
Паразитируем на React-экосистеме (Angular 4+) / Алексей Охрименко (IPONWEB)
Ontico
 
Universal JavaScript Web Applications with React - Luciano Mammino - Codemoti...
Universal JavaScript Web Applications with React - Luciano Mammino - Codemoti...Universal JavaScript Web Applications with React - Luciano Mammino - Codemoti...
Universal JavaScript Web Applications with React - Luciano Mammino - Codemoti...
Codemotion
 
Universal JS Web Applications with React - Luciano Mammino - Codemotion Rome ...
Universal JS Web Applications with React - Luciano Mammino - Codemotion Rome ...Universal JS Web Applications with React - Luciano Mammino - Codemotion Rome ...
Universal JS Web Applications with React - Luciano Mammino - Codemotion Rome ...
Luciano Mammino
 
Vuejs for Angular developers
Vuejs for Angular developersVuejs for Angular developers
Vuejs for Angular developers
Mikhail Kuznetcov
 
Web components with Angular
Web components with AngularWeb components with Angular
Web components with Angular
Ana Cidre
 
An introduction to Vue.js
An introduction to Vue.jsAn introduction to Vue.js
An introduction to Vue.js
Pagepro
 
Aurelia Meetup Paris
Aurelia Meetup ParisAurelia Meetup Paris
Aurelia Meetup Paris
Ahmed Radjdi
 
How to Use Material UI (MUI) Icons in React
How to Use Material UI (MUI) Icons in ReactHow to Use Material UI (MUI) Icons in React
How to Use Material UI (MUI) Icons in React
WrapPixel
 
Ionic2
Ionic2Ionic2
Ionic2
Jiayun Zhou
 
Front End Development for Back End Developers - UberConf 2017
Front End Development for Back End Developers - UberConf 2017Front End Development for Back End Developers - UberConf 2017
Front End Development for Back End Developers - UberConf 2017
Matt Raible
 
Angular routing
Angular routingAngular routing
Angular routing
Sultan Ahmed
 
EWD 3 Training Course Part 38: Building a React.js application with QEWD, Part 4
EWD 3 Training Course Part 38: Building a React.js application with QEWD, Part 4EWD 3 Training Course Part 38: Building a React.js application with QEWD, Part 4
EWD 3 Training Course Part 38: Building a React.js application with QEWD, Part 4
Rob Tweed
 
Building Universal Web Apps with React ForwardJS 2017
Building Universal Web Apps with React ForwardJS 2017Building Universal Web Apps with React ForwardJS 2017
Building Universal Web Apps with React ForwardJS 2017
Elyse Kolker Gordon
 
Reactive application using meteor
Reactive application using meteorReactive application using meteor
Reactive application using meteor
Sapna Upreti
 

Similar to reactmuiquestion For some reason getting the following error fr.pdf (20)

Angular 2 binding
Angular 2  bindingAngular 2  binding
Angular 2 binding
 
Bootiful Development with Spring Boot and Angular - RWX 2018
Bootiful Development with Spring Boot and Angular - RWX 2018Bootiful Development with Spring Boot and Angular - RWX 2018
Bootiful Development with Spring Boot and Angular - RWX 2018
 
Angular2RoutingSetupByShubham
Angular2RoutingSetupByShubhamAngular2RoutingSetupByShubham
Angular2RoutingSetupByShubham
 
How to Build SPA with Vue Router 2.0
How to Build SPA with Vue Router 2.0How to Build SPA with Vue Router 2.0
How to Build SPA with Vue Router 2.0
 
Building a TV show with Angular, Bootstrap, and Web Services
Building a TV show with Angular, Bootstrap, and Web ServicesBuilding a TV show with Angular, Bootstrap, and Web Services
Building a TV show with Angular, Bootstrap, and Web Services
 
Jan 2017 - a web of applications (angular 2)
Jan 2017 - a web of applications (angular 2)Jan 2017 - a web of applications (angular 2)
Jan 2017 - a web of applications (angular 2)
 
Паразитируем на React-экосистеме (Angular 4+) / Алексей Охрименко (IPONWEB)
Паразитируем на React-экосистеме (Angular 4+) / Алексей Охрименко (IPONWEB)Паразитируем на React-экосистеме (Angular 4+) / Алексей Охрименко (IPONWEB)
Паразитируем на React-экосистеме (Angular 4+) / Алексей Охрименко (IPONWEB)
 
Universal JavaScript Web Applications with React - Luciano Mammino - Codemoti...
Universal JavaScript Web Applications with React - Luciano Mammino - Codemoti...Universal JavaScript Web Applications with React - Luciano Mammino - Codemoti...
Universal JavaScript Web Applications with React - Luciano Mammino - Codemoti...
 
Universal JS Web Applications with React - Luciano Mammino - Codemotion Rome ...
Universal JS Web Applications with React - Luciano Mammino - Codemotion Rome ...Universal JS Web Applications with React - Luciano Mammino - Codemotion Rome ...
Universal JS Web Applications with React - Luciano Mammino - Codemotion Rome ...
 
Vuejs for Angular developers
Vuejs for Angular developersVuejs for Angular developers
Vuejs for Angular developers
 
Web components with Angular
Web components with AngularWeb components with Angular
Web components with Angular
 
An introduction to Vue.js
An introduction to Vue.jsAn introduction to Vue.js
An introduction to Vue.js
 
Aurelia Meetup Paris
Aurelia Meetup ParisAurelia Meetup Paris
Aurelia Meetup Paris
 
How to Use Material UI (MUI) Icons in React
How to Use Material UI (MUI) Icons in ReactHow to Use Material UI (MUI) Icons in React
How to Use Material UI (MUI) Icons in React
 
Ionic2
Ionic2Ionic2
Ionic2
 
Front End Development for Back End Developers - UberConf 2017
Front End Development for Back End Developers - UberConf 2017Front End Development for Back End Developers - UberConf 2017
Front End Development for Back End Developers - UberConf 2017
 
Angular routing
Angular routingAngular routing
Angular routing
 
EWD 3 Training Course Part 38: Building a React.js application with QEWD, Part 4
EWD 3 Training Course Part 38: Building a React.js application with QEWD, Part 4EWD 3 Training Course Part 38: Building a React.js application with QEWD, Part 4
EWD 3 Training Course Part 38: Building a React.js application with QEWD, Part 4
 
Building Universal Web Apps with React ForwardJS 2017
Building Universal Web Apps with React ForwardJS 2017Building Universal Web Apps with React ForwardJS 2017
Building Universal Web Apps with React ForwardJS 2017
 
Reactive application using meteor
Reactive application using meteorReactive application using meteor
Reactive application using meteor
 

More from sunilkhetpal

Question 3 Your bank has the following balance sheet Assets .pdf
Question 3 Your bank has the following balance sheet Assets     .pdfQuestion 3 Your bank has the following balance sheet Assets     .pdf
Question 3 Your bank has the following balance sheet Assets .pdf
sunilkhetpal
 
Question 3 [12]A large share of the growing expenditure in South.pdf
Question 3 [12]A large share of the growing expenditure in South.pdfQuestion 3 [12]A large share of the growing expenditure in South.pdf
Question 3 [12]A large share of the growing expenditure in South.pdf
sunilkhetpal
 
Question 26 optionsThe (blank)was used an example of a cartel.pdf
Question 26 optionsThe (blank)was used an example of a cartel.pdfQuestion 26 optionsThe (blank)was used an example of a cartel.pdf
Question 26 optionsThe (blank)was used an example of a cartel.pdf
sunilkhetpal
 
Question 2.Question 3.Question 4.Question 5. Which of the foll.pdf
Question 2.Question 3.Question 4.Question 5. Which of the foll.pdfQuestion 2.Question 3.Question 4.Question 5. Which of the foll.pdf
Question 2.Question 3.Question 4.Question 5. Which of the foll.pdf
sunilkhetpal
 
Question 2 [1 pt] Variable Wa,b defines that a Wumpus is located as.pdf
Question 2 [1 pt] Variable Wa,b defines that a Wumpus is located as.pdfQuestion 2 [1 pt] Variable Wa,b defines that a Wumpus is located as.pdf
Question 2 [1 pt] Variable Wa,b defines that a Wumpus is located as.pdf
sunilkhetpal
 
Question 1 [10 marks] 1. Create a Customer.mdf database as per dia.pdf
Question 1 [10 marks] 1. Create a Customer.mdf database as per dia.pdfQuestion 1 [10 marks] 1. Create a Customer.mdf database as per dia.pdf
Question 1 [10 marks] 1. Create a Customer.mdf database as per dia.pdf
sunilkhetpal
 
QUESTION 1 PURPOSE Manage expectations and communication across mul.pdf
QUESTION 1 PURPOSE Manage expectations and communication across mul.pdfQUESTION 1 PURPOSE Manage expectations and communication across mul.pdf
QUESTION 1 PURPOSE Manage expectations and communication across mul.pdf
sunilkhetpal
 
Question 1 Explain the difference between management and leadership.pdf
Question 1 Explain the difference between management and leadership.pdfQuestion 1 Explain the difference between management and leadership.pdf
Question 1 Explain the difference between management and leadership.pdf
sunilkhetpal
 
Quer�a ayuda con el estudio de caso de Vonkel a continuaci�n para re.pdf
Quer�a ayuda con el estudio de caso de Vonkel a continuaci�n para re.pdfQuer�a ayuda con el estudio de caso de Vonkel a continuaci�n para re.pdf
Quer�a ayuda con el estudio de caso de Vonkel a continuaci�n para re.pdf
sunilkhetpal
 
Question 2 (20 Marks) Natasha, Elize and Tino are partners in a well.pdf
Question 2 (20 Marks) Natasha, Elize and Tino are partners in a well.pdfQuestion 2 (20 Marks) Natasha, Elize and Tino are partners in a well.pdf
Question 2 (20 Marks) Natasha, Elize and Tino are partners in a well.pdf
sunilkhetpal
 
Questa Bank is intending to invest in two different investments with.pdf
Questa Bank is intending to invest in two different investments with.pdfQuesta Bank is intending to invest in two different investments with.pdf
Questa Bank is intending to invest in two different investments with.pdf
sunilkhetpal
 
Question 1Write a detailed technical report of 5000 words. The au.pdf
Question 1Write a detailed technical report of 5000 words. The au.pdfQuestion 1Write a detailed technical report of 5000 words. The au.pdf
Question 1Write a detailed technical report of 5000 words. The au.pdf
sunilkhetpal
 
Question 1 (1 point)SavedWhich of the following is used to ass.pdf
Question 1 (1 point)SavedWhich of the following is used to ass.pdfQuestion 1 (1 point)SavedWhich of the following is used to ass.pdf
Question 1 (1 point)SavedWhich of the following is used to ass.pdf
sunilkhetpal
 
Reference- Rauber, R. M., Walsh, J. E., & Charlevoix, D. J. (2017). .pdf
Reference- Rauber, R. M., Walsh, J. E., & Charlevoix, D. J. (2017). .pdfReference- Rauber, R. M., Walsh, J. E., & Charlevoix, D. J. (2017). .pdf
Reference- Rauber, R. M., Walsh, J. E., & Charlevoix, D. J. (2017). .pdf
sunilkhetpal
 
Record-a-Song Company, sekiz ark kaydetmek i�in y�kselen bir yldzla .pdf
Record-a-Song Company, sekiz ark kaydetmek i�in y�kselen bir yldzla .pdfRecord-a-Song Company, sekiz ark kaydetmek i�in y�kselen bir yldzla .pdf
Record-a-Song Company, sekiz ark kaydetmek i�in y�kselen bir yldzla .pdf
sunilkhetpal
 
Realice pruebas t de muestras independientes en las puntuaciones de .pdf
Realice pruebas t de muestras independientes en las puntuaciones de .pdfRealice pruebas t de muestras independientes en las puntuaciones de .pdf
Realice pruebas t de muestras independientes en las puntuaciones de .pdf
sunilkhetpal
 
Reading the Discussion section, answer the following (5 marks)a .pdf
Reading the Discussion section, answer the following (5 marks)a .pdfReading the Discussion section, answer the following (5 marks)a .pdf
Reading the Discussion section, answer the following (5 marks)a .pdf
sunilkhetpal
 
Rebecca Wallace is a 26-year-old woman who is brought to the Emergen.pdf
Rebecca Wallace is a 26-year-old woman who is brought to the Emergen.pdfRebecca Wallace is a 26-year-old woman who is brought to the Emergen.pdf
Rebecca Wallace is a 26-year-old woman who is brought to the Emergen.pdf
sunilkhetpal
 
Read the case study given below and answer ALL the questions. What w.pdf
Read the case study given below and answer ALL the questions. What w.pdfRead the case study given below and answer ALL the questions. What w.pdf
Read the case study given below and answer ALL the questions. What w.pdf
sunilkhetpal
 
QUESTION 11Sony Safe Harbor has had a broad impact on the interpre.pdf
QUESTION 11Sony Safe Harbor has had a broad impact on the interpre.pdfQUESTION 11Sony Safe Harbor has had a broad impact on the interpre.pdf
QUESTION 11Sony Safe Harbor has had a broad impact on the interpre.pdf
sunilkhetpal
 

More from sunilkhetpal (20)

Question 3 Your bank has the following balance sheet Assets .pdf
Question 3 Your bank has the following balance sheet Assets     .pdfQuestion 3 Your bank has the following balance sheet Assets     .pdf
Question 3 Your bank has the following balance sheet Assets .pdf
 
Question 3 [12]A large share of the growing expenditure in South.pdf
Question 3 [12]A large share of the growing expenditure in South.pdfQuestion 3 [12]A large share of the growing expenditure in South.pdf
Question 3 [12]A large share of the growing expenditure in South.pdf
 
Question 26 optionsThe (blank)was used an example of a cartel.pdf
Question 26 optionsThe (blank)was used an example of a cartel.pdfQuestion 26 optionsThe (blank)was used an example of a cartel.pdf
Question 26 optionsThe (blank)was used an example of a cartel.pdf
 
Question 2.Question 3.Question 4.Question 5. Which of the foll.pdf
Question 2.Question 3.Question 4.Question 5. Which of the foll.pdfQuestion 2.Question 3.Question 4.Question 5. Which of the foll.pdf
Question 2.Question 3.Question 4.Question 5. Which of the foll.pdf
 
Question 2 [1 pt] Variable Wa,b defines that a Wumpus is located as.pdf
Question 2 [1 pt] Variable Wa,b defines that a Wumpus is located as.pdfQuestion 2 [1 pt] Variable Wa,b defines that a Wumpus is located as.pdf
Question 2 [1 pt] Variable Wa,b defines that a Wumpus is located as.pdf
 
Question 1 [10 marks] 1. Create a Customer.mdf database as per dia.pdf
Question 1 [10 marks] 1. Create a Customer.mdf database as per dia.pdfQuestion 1 [10 marks] 1. Create a Customer.mdf database as per dia.pdf
Question 1 [10 marks] 1. Create a Customer.mdf database as per dia.pdf
 
QUESTION 1 PURPOSE Manage expectations and communication across mul.pdf
QUESTION 1 PURPOSE Manage expectations and communication across mul.pdfQUESTION 1 PURPOSE Manage expectations and communication across mul.pdf
QUESTION 1 PURPOSE Manage expectations and communication across mul.pdf
 
Question 1 Explain the difference between management and leadership.pdf
Question 1 Explain the difference between management and leadership.pdfQuestion 1 Explain the difference between management and leadership.pdf
Question 1 Explain the difference between management and leadership.pdf
 
Quer�a ayuda con el estudio de caso de Vonkel a continuaci�n para re.pdf
Quer�a ayuda con el estudio de caso de Vonkel a continuaci�n para re.pdfQuer�a ayuda con el estudio de caso de Vonkel a continuaci�n para re.pdf
Quer�a ayuda con el estudio de caso de Vonkel a continuaci�n para re.pdf
 
Question 2 (20 Marks) Natasha, Elize and Tino are partners in a well.pdf
Question 2 (20 Marks) Natasha, Elize and Tino are partners in a well.pdfQuestion 2 (20 Marks) Natasha, Elize and Tino are partners in a well.pdf
Question 2 (20 Marks) Natasha, Elize and Tino are partners in a well.pdf
 
Questa Bank is intending to invest in two different investments with.pdf
Questa Bank is intending to invest in two different investments with.pdfQuesta Bank is intending to invest in two different investments with.pdf
Questa Bank is intending to invest in two different investments with.pdf
 
Question 1Write a detailed technical report of 5000 words. The au.pdf
Question 1Write a detailed technical report of 5000 words. The au.pdfQuestion 1Write a detailed technical report of 5000 words. The au.pdf
Question 1Write a detailed technical report of 5000 words. The au.pdf
 
Question 1 (1 point)SavedWhich of the following is used to ass.pdf
Question 1 (1 point)SavedWhich of the following is used to ass.pdfQuestion 1 (1 point)SavedWhich of the following is used to ass.pdf
Question 1 (1 point)SavedWhich of the following is used to ass.pdf
 
Reference- Rauber, R. M., Walsh, J. E., & Charlevoix, D. J. (2017). .pdf
Reference- Rauber, R. M., Walsh, J. E., & Charlevoix, D. J. (2017). .pdfReference- Rauber, R. M., Walsh, J. E., & Charlevoix, D. J. (2017). .pdf
Reference- Rauber, R. M., Walsh, J. E., & Charlevoix, D. J. (2017). .pdf
 
Record-a-Song Company, sekiz ark kaydetmek i�in y�kselen bir yldzla .pdf
Record-a-Song Company, sekiz ark kaydetmek i�in y�kselen bir yldzla .pdfRecord-a-Song Company, sekiz ark kaydetmek i�in y�kselen bir yldzla .pdf
Record-a-Song Company, sekiz ark kaydetmek i�in y�kselen bir yldzla .pdf
 
Realice pruebas t de muestras independientes en las puntuaciones de .pdf
Realice pruebas t de muestras independientes en las puntuaciones de .pdfRealice pruebas t de muestras independientes en las puntuaciones de .pdf
Realice pruebas t de muestras independientes en las puntuaciones de .pdf
 
Reading the Discussion section, answer the following (5 marks)a .pdf
Reading the Discussion section, answer the following (5 marks)a .pdfReading the Discussion section, answer the following (5 marks)a .pdf
Reading the Discussion section, answer the following (5 marks)a .pdf
 
Rebecca Wallace is a 26-year-old woman who is brought to the Emergen.pdf
Rebecca Wallace is a 26-year-old woman who is brought to the Emergen.pdfRebecca Wallace is a 26-year-old woman who is brought to the Emergen.pdf
Rebecca Wallace is a 26-year-old woman who is brought to the Emergen.pdf
 
Read the case study given below and answer ALL the questions. What w.pdf
Read the case study given below and answer ALL the questions. What w.pdfRead the case study given below and answer ALL the questions. What w.pdf
Read the case study given below and answer ALL the questions. What w.pdf
 
QUESTION 11Sony Safe Harbor has had a broad impact on the interpre.pdf
QUESTION 11Sony Safe Harbor has had a broad impact on the interpre.pdfQUESTION 11Sony Safe Harbor has had a broad impact on the interpre.pdf
QUESTION 11Sony Safe Harbor has had a broad impact on the interpre.pdf
 

Recently uploaded

678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
CarlosHernanMontoyab2
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Peter Windle
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
timhan337
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
BhavyaRajput3
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 

Recently uploaded (20)

678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 

reactmuiquestion For some reason getting the following error fr.pdf

  • 1. react/mui: question: For some reason getting the following error from link. How do I fix this? note: "/" is in app routes and wrapped around browserouter. Only link part cause error on page it seems. Without it it works fines ////////////sidebar.js///////////// import { Box, IconButton, Typography, useTheme } from "@mui/material"; import React from 'react'; import { useState } from 'react'; import{ ProSidebar, Menu, MenuItem} from 'react-pro-sidebar'; import "react-pro-sidebar/dist/css/styles.css"; import { Link } from "react-router-dom"; import { tokens } from '../../theme'; import HomeOutlinedIcon from '@mui/icons-material/HomeOutlined'; import PeopleAltOutlinedIcon from '@mui/icons-material/PeopleAltOutlined'; import ReceiptLongOutlinedIcon from '@mui/icons-material/ReceiptLongOutlined'; import CalendarMonthOutlinedIcon from '@mui/icons-material/CalendarMonthOutlined'; import HelpOutlineOutlinedIcon from '@mui/icons-material/HelpOutlineOutlined'; import BarChartOutlinedIcon from '@mui/icons-material/BarChartOutlined'; import PieChartOutlineOutlinedIcon from '@mui/icons-material/PieChartOutlineOutlined'; import ViewTimelineOutlinedIcon from '@mui/icons-material/ViewTimelineOutlined'; import MenuOutlinedIcon from '@mui/icons-material/MenuOutlined'; import MapOutlinedIcon from '@mui/icons-material/MapOutlined'; import LightModeOutlined from "@mui/icons-material/LightModeOutlined"; import ContactPageOutlinedIcon from '@mui/icons-material/ContactPageOutlined'; // Item component const Item = ( { title , to, icon, selected , setSelected}) =>{ const theme = useTheme(); const colors = tokens(theme.palette.mode); return( setSelected(title)} icon={icon} >
  • 2. {title} ) } function Sidebar() { const theme = useTheme(); const colors = tokens(theme.palette.mode); const [isClosed, setIsClosed] = useState(false); const [selected, setSelected] = useState("Dashboard") return ( setIsClosed(!isClosed)} icon={isClosed ? : undefined} style={{ margin: "10px 0 20px 0", color: colors.grey[100], }} > {!isClosed && ( Admin setIsClosed(!isClosed)}> )} {!isClosed && ( {/* {user profile } */} Sleeping cat SC Admin