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