mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-21 11:42: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 profile = useProfile();
|
||||||
const onLaterClick = React.useCallback(() => {
|
const onLaterClick = React.useCallback(() => {
|
||||||
const streamingServerWarningDismissed = new Date();
|
const streamingServerWarningDismissed = new Date();
|
||||||
|
streamingServerWarningDismissed.setMonth(streamingServerWarningDismissed.getMonth() + 1);
|
||||||
core.transport.dispatch({
|
core.transport.dispatch({
|
||||||
action: 'Ctx',
|
action: 'Ctx',
|
||||||
args: {
|
args: {
|
||||||
action: 'UpdateSettings',
|
action: 'UpdateSettings',
|
||||||
args: {
|
args: {
|
||||||
...profile.settings,
|
...profile.settings,
|
||||||
streamingServerWarningDismissed: streamingServerWarningDismissed.setMonth(streamingServerWarningDismissed.getMonth() + 1)
|
streamingServerWarningDismissed: streamingServerWarningDismissed
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}, [profile.settings]);
|
}, [profile.settings]);
|
||||||
const onDismissedClick = React.useCallback(() => {
|
const onDismissedClick = React.useCallback(() => {
|
||||||
const streamingServerWarningDismissed = new Date();
|
const streamingServerWarningDismissed = new Date();
|
||||||
|
streamingServerWarningDismissed.setFullYear(streamingServerWarningDismissed.getFullYear() + 50);
|
||||||
core.transport.dispatch({
|
core.transport.dispatch({
|
||||||
action: 'Ctx',
|
action: 'Ctx',
|
||||||
args: {
|
args: {
|
||||||
action: 'UpdateSettings',
|
action: 'UpdateSettings',
|
||||||
args: {
|
args: {
|
||||||
...profile.settings,
|
...profile.settings,
|
||||||
streamingServerWarningDismissed: streamingServerWarningDismissed.setFullYear(streamingServerWarningDismissed.getFullYear() + 50)
|
streamingServerWarningDismissed: streamingServerWarningDismissed
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue