mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
streamingServerWarningDismissed usage fixed
This commit is contained in:
parent
245956d510
commit
88964b0ab1
1 changed files with 4 additions and 3 deletions
|
|
@ -11,27 +11,28 @@ const styles = require('./styles');
|
|||
const ServerWarning = ({ className }) => {
|
||||
const { core } = useServices();
|
||||
const profile = useProfile();
|
||||
const streamingServerWarningDismissed = new Date();
|
||||
const onLaterClick = React.useCallback(() => {
|
||||
const streamingServerWarningDismissed = new Date();
|
||||
core.transport.dispatch({
|
||||
action: 'Ctx',
|
||||
args: {
|
||||
action: 'UpdateSettings',
|
||||
args: {
|
||||
...profile.settings,
|
||||
streamingServerWarningDismissed: streamingServerWarningDismissed.setMonth(new Date().getMonth() + 1)
|
||||
streamingServerWarningDismissed: streamingServerWarningDismissed.setMonth(streamingServerWarningDismissed.getMonth() + 1)
|
||||
}
|
||||
}
|
||||
});
|
||||
}, [profile.settings]);
|
||||
const onDismissedClick = React.useCallback(() => {
|
||||
const streamingServerWarningDismissed = new Date();
|
||||
core.transport.dispatch({
|
||||
action: 'Ctx',
|
||||
args: {
|
||||
action: 'UpdateSettings',
|
||||
args: {
|
||||
...profile.settings,
|
||||
streamingServerWarningDismissed: streamingServerWarningDismissed.setFullYear(new Date().getFullYear() + 50)
|
||||
streamingServerWarningDismissed: streamingServerWarningDismissed.setFullYear(streamingServerWarningDismissed.getFullYear() + 50)
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue