mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-08-18 13:36:47 +00:00
remove: href and target on button
This commit is contained in:
parent
0ee4b6d396
commit
9b160a0c6b
1 changed files with 4 additions and 4 deletions
|
|
@ -103,10 +103,10 @@ const Settings = () => {
|
|||
});
|
||||
}
|
||||
}, [isTraktAuthenticated, profile.auth]);
|
||||
const protocol = platformName === 'ios' ? 'webcal' : 'https';
|
||||
const calendarUrl = `${protocol}://www.strem.io/calendar/${profile.auth.user._id}.ics`;
|
||||
const subscribeCalendarOnClick = React.useCallback(() => {
|
||||
platform.openExternal(calendarUrl);
|
||||
const protocol = platformName === 'ios' ? 'webcal' : 'https';
|
||||
const url = `${protocol}://www.strem.io/calendar/${profile.auth.user._id}.ics`;
|
||||
platform.openExternal(url);
|
||||
toast.show({
|
||||
type: 'success',
|
||||
title: platformName === 'android' ?
|
||||
|
|
@ -273,7 +273,7 @@ const Settings = () => {
|
|||
{
|
||||
profile.auth !== null && profile.auth.user !== null && typeof profile.auth.user._id === 'string' ?
|
||||
<div className={classnames(styles['option-container'], styles['link-container'])}>
|
||||
<Button className={classnames(styles['option-input-container'], styles['link-input-container'])} title={t('SETTINGS_SUBSCRIBE_CALENDAR')} tabIndex={-1} onClick={subscribeCalendarOnClick} href={calendarUrl} target={'_blank'}>
|
||||
<Button className={classnames(styles['option-input-container'], styles['link-input-container'])} title={t('SETTINGS_SUBSCRIBE_CALENDAR')} tabIndex={-1} onClick={subscribeCalendarOnClick}>
|
||||
<div className={styles['label']}>{ t('SETTINGS_SUBSCRIBE_CALENDAR') }</div>
|
||||
</Button>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue