Skip to content

Commit

Permalink
Merge pull request #474 from StampyAI/stampy-redesign-419-QA
Browse files Browse the repository at this point in the history
QA requests
  • Loading branch information
melissasamworth authored Mar 14, 2024
2 parents 21c213b + d2a83c0 commit b2fef5c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/components/CategoriesNav/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {SearchInput} from '../SearchInput/Input'
import {Tag as TagType} from '~/server-utils/stampy'
import {tagUrl} from '~/routesMapper'
import './menu.css'
import useIsMobile from '~/hooks/isMobile'

interface CategoriesNavProps {
/**
Expand All @@ -22,9 +23,10 @@ interface CategoriesNavProps {

export const CategoriesNav = ({categories, activeCategoryId, className}: CategoriesNavProps) => {
const [search, onSearch] = useState('')
const mobile = useIsMobile()
return (
<div className={['categoriesGroup bordered col-4-5', className].join(' ')}>
<h4>Categories</h4>
{mobile ? <h1>Categories</h1> : <p className={'small-bold'}>Categories</p>}
<div>
<SearchInput onChange={onSearch} placeholderText="Filter by keyword" />
</div>
Expand Down
4 changes: 4 additions & 0 deletions app/components/CategoriesNav/menu.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
.categoriesGroup {
width: 100%;
height: 100%;
padding: 0px;
}
.categoriesGroup.bordered {
border: 0;
Expand All @@ -38,4 +39,7 @@
.categoryTitle.selected {
background: inherit;
}
.categoriesGroup > * {
padding: var(--spacing-16) var(--spacing-8);
}
}

0 comments on commit b2fef5c

Please sign in to comment.