Skip to content

Commit

Permalink
Fix params
Browse files Browse the repository at this point in the history
  • Loading branch information
ducquando committed Dec 27, 2023
1 parent 74be455 commit 7e3e730
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
1 change: 0 additions & 1 deletion src/stylesheets/about.css
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@
gap: 0.5rem 1rem;
align-self: stretch;
flex-wrap: wrap;
flex-direction: column;
}
.tool-items {
display: flex;
Expand Down
2 changes: 0 additions & 2 deletions src/views/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,10 @@ export const Header: React.FC<HeaderProps> = ({ icons }) => {

function changeState() {
if (openSymbol == 'none') {
// $('body').css('overflow-y', 'visible');
setOpenSymbol('block');
setCloseSymbol('none');
setNavView('none');
} else {
// $('body').css('overflow-y', 'hidden');
setOpenSymbol('none');
setCloseSymbol('block');
setNavView('flex');
Expand Down
12 changes: 6 additions & 6 deletions src/views/work.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ export const Work: React.FC<WorkProps> = ({
searchParams.get('sort') ?? 'curated',
);
const [paramSE, setParamSE] = useState(
searchParams.get('se') == 'true' ?? true,
(searchParams.get('se') && searchParams.get('se') == 'true') ?? true,
);
const [paramPD, setParamPD] = useState(
searchParams.get('pd') == 'true' ?? true,
(searchParams.get('pd') && searchParams.get('pd') == 'true') ?? true,
);
const [paramDS, setParamDS] = useState(
searchParams.get('ds') == 'true' ?? true,
(searchParams.get('ds') && searchParams.get('ds') == 'true') ?? true,
);
const [paramGD, setParamGD] = useState(
searchParams.get('gd') == 'true' ?? true,
(searchParams.get('gd') && searchParams.get('gd') == 'true') ?? true,
);

function toggleFilter(id: string) {
Expand Down Expand Up @@ -128,7 +128,7 @@ export const Work: React.FC<WorkProps> = ({
<div id="work-container">
<div id="tool-container" className="width-90">
{/* Filter */}
<div className="tool-section-about">
<div className="tool-section-work">
<div className="tool-title">
<svg
xmlns="http://www.w3.org/2000/svg"
Expand All @@ -145,7 +145,7 @@ export const Work: React.FC<WorkProps> = ({
</div>

{/* Sort */}
<div className="tool-section-about">
<div className="tool-section-work">
<div className="tool-title">
<svg
xmlns="http://www.w3.org/2000/svg"
Expand Down

0 comments on commit 7e3e730

Please sign in to comment.