Skip to content

Commit

Permalink
Minfor style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
scoronelhamilton committed Dec 22, 2019
1 parent 2f1d178 commit 8034633
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions client/components/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const App = ({
useEffect(() => {
if (window.matchMedia("(prefers-color-scheme: dark)").matches) {
document.documentElement.setAttribute("theme", "dark");
setDark(true)
setDark(true);
}
}, []);

Expand All @@ -39,7 +39,7 @@ const App = ({
} else {
document.documentElement.setAttribute("theme", "light");
}
}, [dark])
}, [dark]);

return (<>
<div className="topnav">
Expand All @@ -63,4 +63,4 @@ const App = ({
</>);
};

export default App;
export default App;
1 change: 1 addition & 0 deletions client/components/OtherItems/ProductsCarousel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const ProductsCarousel = ({ products, handleClick, setActionButton }) => {
<div className='sliderContainer'>
{products.map((product, i) => {
if (products.length < cardsToRender || (i < pointer + cardsToRender && i >= pointer)) {
console.log(product === null ? 'null' : product.id)
return (
<ProductCard
key={product === null ? 0 : product.id}
Expand Down
2 changes: 1 addition & 1 deletion client/components/OtherItems/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ const OtherItems = () => {
<MyOutfitContainer />
</div>
);
}
};

export default OtherItems;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@
"webpack": "^4.41.2",
"webpack-cli": "^3.3.10"
}
}
}

0 comments on commit 8034633

Please sign in to comment.