📈 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!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
add titles to image only auth buttons
Blue Mouseb1877cb3f8ad
diff --git a/app/components/GithubAuth.tsx b/app/components/GithubAuth.tsxindex e523597b4..6f60b94ec 100644--- a/app/components/GithubAuth.tsx+++ b/app/components/GithubAuth.tsx@@ -39,6 +39,7 @@ const GithubAuth: React.FC<IGoogleAuth> = ({if (isMiniButton) {return (<Button+ title={t('auth.common.continueWithGithub')}className={cx(className, 'ring-1 ring-slate-300 bg-transparent hover:bg-slate-100 dark:ring-slate-700 dark:hover:bg-slate-800/60')}onClick={googleLogin}secondarydiff --git a/app/components/GoogleAuth.tsx b/app/components/GoogleAuth.tsxindex 4409cd663..232fc12b6 100644--- a/app/components/GoogleAuth.tsx+++ b/app/components/GoogleAuth.tsx@@ -33,6 +33,7 @@ const GoogleAuth: React.FC<IGoogleAuth> = ({if (isMiniButton) {return (<Button+ title={t('auth.common.continueWithGoogle')}className={cx(className, 'ring-1 ring-slate-300 bg-transparent hover:bg-slate-100 dark:ring-slate-700 dark:hover:bg-slate-800/60')}onClick={googleLogin}secondarydiff --git a/app/ui/Button.tsx b/app/ui/Button.tsxindex e4716e484..0047fab31 100644--- a/app/ui/Button.tsx+++ b/app/ui/Button.tsx@@ -1,11 +1,11 @@/* eslint-disable react/button-has-type */-import React, { memo } from 'react'+import React, { ButtonHTMLAttributes, memo } from 'react'import cx from 'clsx'import PropTypes from 'prop-types'import Spin from './icons/Spin'// Define the prop types for the component-interface IButton {+interface IButton extends React.DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> {// (string): The text to be displayed in the button.text?: string,// (node): The content to be displayed in the button.@@ -38,8 +38,10 @@ interface IButton {const Button = ({text, children, primary, secondary, danger, onClick, white, small, regular, large,giant, type, className, loading, semiSmall, semiDanger, noBorder, focus, disabled,+ ...props}: IButton): JSX.Element => (<button+ {...props}disabled={disabled || loading}type={type}onClick={onClick}