(patch) Add "Hide Repost" button in channel page (#1796)

## Issue
Hide reposts gets enabled on channel page by default, on a fresh browser session.

Open Odysee in private tab
Go to some channel page
Go back
Go to some channel page(same or different)
"Hide reposts" is enabled, and settings expanded
Above also works with logging in while having "hide reposts" disabled in global settings. (edited)

## Fix
Forgot to add default value.
This commit is contained in:
infinite-persistence 2022-07-06 22:03:33 +08:00
parent 7ecbb779af
commit 7c82110326
No known key found for this signature in database
GPG key ID: B9C3252EDC3D0AA0

View file

@ -78,7 +78,7 @@ function ChannelContent(props: Props) {
} = useHistory(); } = useHistory();
// In Channel Page, ignore SETTINGS.HIDE_REPOSTS and show reposts by default: // In Channel Page, ignore SETTINGS.HIDE_REPOSTS and show reposts by default:
const [hideReposts, setHideReposts] = usePersistedState('hideRepostsChannelPage'); const [hideReposts, setHideReposts] = usePersistedState('hideRepostsChannelPage', false);
const claimSearchFilterCtx = { const claimSearchFilterCtx = {
contentTypes: CS.CONTENT_TYPES, contentTypes: CS.CONTENT_TYPES,