Skip to content

Commit

Permalink
Merge pull request #449 from Dark-Matter-Labs/staging
Browse files Browse the repository at this point in the history
fix broken category link on woningen instruments
  • Loading branch information
theocampbell authored Jan 23, 2024
2 parents 9347e30 + a939b83 commit df8d52e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions components/instrument/instrument-header.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ export default function InstrumentHeader({ data }) {
setSelectedTab(value);
}
}

// need to refactor this
const [simpleThema, setSimpleThema] = useState();

useEffect(() => {
if (router.pathname.includes('meubels')) {
if (router.pathname.includes('meubels') || router.pathname.includes('woningen')) {
setSimpleThema(true);
} else {
setSimpleThema(false);
Expand Down
1 change: 1 addition & 0 deletions components/layouts/simple-thema-layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import ThemePageHeaderMobile from '../theme-page/theme-page-header-mobile';

export default function SimpleThemaLayout({ instruments, numberOfLaws, subheading, ...props }) {
const themaData = props.thema;

return (
<>
{/* HEADER DESKTOP */}
Expand Down
2 changes: 1 addition & 1 deletion pages/bouw/woningen/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default function Meubels({ thema, length, instruments }) {
useEffect(() => {
localStorage.clear();
});
console.log(length)

return (
<Layout title='CircuLaw - Woningen'>
<SimpleThemaLayout
Expand Down

1 comment on commit df8d52e

@vercel
Copy link

@vercel vercel bot commented on df8d52e Jan 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.