Skip to content

Enabled Deselection of item from the side bar on navigating to the home page. #73

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/playground/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default ({ params }) => {
<div
style={{
border: "1px dashed #ccc",
position:'relative'
position: "relative",
}}
>
<Compiler
Expand Down
6 changes: 3 additions & 3 deletions src/containers/Drawer/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function ResponsiveDrawer(props) {
const [selectedIndex, setSelectedIndex] = React.useState(-1);

const handleDrawerToggle = (value) => {
if(value === false){
if (value === false) {
setMobileOpen(false);
} else {
setMobileOpen(true);
Expand All @@ -91,7 +91,7 @@ function ResponsiveDrawer(props) {
const drawer = (
<div>
<div style={{ padding: "0.5rem" }}>
<Link to="/">
<Link to="/" onClick={(event) => handleListItemClick(event, -1)}>
<Typography variant="h5">Playground 🚀</Typography>
</Link>
</div>
Expand Down Expand Up @@ -134,7 +134,7 @@ function ResponsiveDrawer(props) {
>
<MenuIcon />
</IconButton>
<Link to="/">
<Link to="/" onClick={(event) => handleListItemClick(event, -1)}>
<Typography variant="h6" noWrap>
React Native Elements
</Typography>
Expand Down