Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

remove tooltip

Blue Mouseb25adce02895
diff --git a/src/pages/UserSettings/UserSettings.tsx b/src/pages/UserSettings/UserSettings.tsx
index b94d533d8..1b7b5f4f4 100644
--- a/src/pages/UserSettings/UserSettings.tsx
+++ b/src/pages/UserSettings/UserSettings.tsx
@@ -550,6 +550,7 @@ const UserSettings = ({
</h3>
<Socialisations
user={user}
+ genericError={genericError}
linkSSO={linkSSO}
unlinkSSO={unlinkSSO}
/>
diff --git a/src/pages/UserSettings/components/Socialisations.tsx b/src/pages/UserSettings/components/Socialisations.tsx
index 5e6707a63..d0b4c3152 100644
--- a/src/pages/UserSettings/components/Socialisations.tsx
+++ b/src/pages/UserSettings/components/Socialisations.tsx
@@ -5,7 +5,6 @@ import {
CheckCircleIcon, XCircleIcon,
} from '@heroicons/react/24/solid'
-import Tooltip from 'ui/Tooltip'
import Button from 'ui/Button'
import Google from 'ui/icons/GoogleG'
import { IUser } from 'redux/models/IUser'
@@ -38,10 +37,11 @@ interface ISocialisations {
user: IUser,
linkSSO: (t: (key: string) => string, callback: (e: any) => void, provider: string) => void,
unlinkSSO: (t: (key: string) => string, callback: (e: any) => void, provider: string) => void,
+ genericError: (message: string) => void,
}
const Socialisations = ({
- user, linkSSO, unlinkSSO,
+ user, linkSSO, unlinkSSO, genericError,
}: ISocialisations) => {
const { t }: {
t: (key: string) => string,
@@ -101,15 +101,13 @@ const Socialisations = ({
</div>
<div className='flex justify-center mt-2 sm:block sm:mt-0'>
{connected && !unlinkable && (
- <Tooltip
- className='max-w-content !w-full'
- tooltipNode={(
- <Button onClick={() => { }} disabled small danger>
- {t('common.unlink')}
- </Button>
- )}
- text={t('profileSettings.cantUnlinkSocialisation')}
- />
+ <Button
+ onClick={() => genericError(t('profileSettings.cantUnlinkSocialisation'))}
+ small
+ danger
+ >
+ {t('common.unlink')}
+ </Button>
)}
{connected && unlinkable && (