SlideShare a Scribd company logo
1 of 3
Download to read offline
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

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 2018Matt 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.0Takuya 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 ServicesDavid 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 developersMikhail Kuznetcov
 
Web components with Angular
Web components with AngularWeb components with Angular
Web components with AngularAna Cidre
 
An introduction to Vue.js
An introduction to Vue.jsAn introduction to Vue.js
An introduction to Vue.jsPagepro
 
Aurelia Meetup Paris
Aurelia Meetup ParisAurelia Meetup Paris
Aurelia Meetup ParisAhmed 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 ReactWrapPixel
 
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 2017Matt Raible
 
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 4Rob 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 2017Elyse Kolker Gordon
 
Reactive application using meteor
Reactive application using meteorReactive application using meteor
Reactive application using meteorSapna 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 .pdfsunilkhetpal
 
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.pdfsunilkhetpal
 
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.pdfsunilkhetpal
 
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.pdfsunilkhetpal
 
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.pdfsunilkhetpal
 
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.pdfsunilkhetpal
 
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.pdfsunilkhetpal
 
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.pdfsunilkhetpal
 
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.pdfsunilkhetpal
 
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.pdfsunilkhetpal
 
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.pdfsunilkhetpal
 
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.pdfsunilkhetpal
 
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.pdfsunilkhetpal
 
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). .pdfsunilkhetpal
 
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 .pdfsunilkhetpal
 
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 .pdfsunilkhetpal
 
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 .pdfsunilkhetpal
 
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.pdfsunilkhetpal
 
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.pdfsunilkhetpal
 
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.pdfsunilkhetpal
 

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

Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 

Recently uploaded (20)

Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.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