Skip to content

Commit

Permalink
Fix all posts not working
Browse files Browse the repository at this point in the history
  • Loading branch information
teodorus-nathaniel committed Mar 6, 2024
1 parent b53281a commit 000b868
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
14 changes: 1 addition & 13 deletions src/components/main/HomePageFilters.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export const SpaceFilterView = ({ filter: { type, date }, ...props }: SpaceFilte
const onChangeWrap = (onChange: OnChangeFn) => (e: RadioChangeEvent) => onChange(e.target.value)

export const Filters = (props: Props) => {
const { tabKey, isAffix } = props
const { tabKey } = props
const { isMobile } = useResponsiveSize()

const { setValue, value } = useShowLikeablePostsContext()
Expand All @@ -130,18 +130,6 @@ export const Filters = (props: Props) => {

const filters = filterByKey[tabKey]

if (isAffix && showLikablePostsCheckbox) {
return (
<div className={clsx('AffixCheckbox')}>
<Checkbox checked={value} onChange={e => setValue(e.target.checked)}>
<span className='ColorMuted' style={{ userSelect: 'none' }}>
Show likeable posts only
</span>
</Checkbox>
</div>
)
}

return (
<div className='DfFilters mt-3'>
<Row className={style.DfGridParams}>
Expand Down
2 changes: 1 addition & 1 deletion src/styles/subsocial.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2198,10 +2198,10 @@ hr {
}

.DfFiltersCommon {
max-width: 748px;
margin: 0 -18px 0 -18px;
background-color: $color_page_bg;
box-shadow: 0px 21px 12px -19px #ddd;
width: calc(100% + 36px);
}

.ant-affix {
Expand Down

0 comments on commit 000b868

Please sign in to comment.