Skip to content

Commit

Permalink
feat: adding z-index and fixing routing condition logic
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonNotJson committed Oct 9, 2023
1 parent 43e28f7 commit d243d26
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
11 changes: 9 additions & 2 deletions apps/forum/src/components/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,15 @@ const InnerApp = () => {
const [filterButtonClicked, setFilterButtonClicked] = useState(false);

const isThreadRoute =
location.pathname.includes("forum#/") &&
location.pathname.split("/").length === 4;
location.pathname.startsWith("/") &&
location.pathname.split("/").length === 3;

console.log(location);
console.log(isThreadRoute);

useEffect(() => {
console.log(location.hash);
}, [location]);

const handleReset = () => {
navigate("/");
Expand Down
1 change: 1 addition & 0 deletions apps/forum/src/styles/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
position: absolute;
bottom: 10%;
right: 5%;
z-index: 99;
}

.filterModal {
Expand Down

0 comments on commit d243d26

Please sign in to comment.