📈 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
remove Beta component
Blue Mouse1560ac20d53c
diff --git a/web/app/pages/Captcha/Settings/CaptchaSettings.tsx b/web/app/pages/Captcha/Settings/CaptchaSettings.tsxindex 612c345d7..aa05f8476 100644--- a/web/app/pages/Captcha/Settings/CaptchaSettings.tsx+++ b/web/app/pages/Captcha/Settings/CaptchaSettings.tsx@@ -355,7 +355,6 @@ const CaptchaSettings = ({ isSettings }: CaptchaSettingsProps) => {className='mt-4'onChange={handleInput}error={beenSubmitted ? errors.ipBlacklist : null}- isBeta/><hr className='mt-5 border-gray-200 dark:border-gray-600' /><h3 className='mt-2 flex items-center text-lg font-bold text-gray-900 dark:text-gray-50'>diff --git a/web/app/ui/Beta.tsx b/web/app/ui/Beta.tsxdeleted file mode 100644index 062a37fa5..000000000--- a/web/app/ui/Beta.tsx+++ /dev/null@@ -1,23 +0,0 @@-import { memo } from 'react'-import { useTranslation } from 'react-i18next'--import { Badge } from './Badge'-import Tooltip from './Tooltip'--interface BetaProps {- className?: string-}--const Beta = ({ className }: BetaProps) => {- const { t } = useTranslation('common')-- return (- <Tooltip- className='max-w-content !w-full'- tooltipNode={<Badge className={className} label={t('beta.title')} colour='yellow' />}- text={t('beta.description')}- />- )-}--export default memo(Beta)diff --git a/web/app/ui/Input.tsx b/web/app/ui/Input.tsxindex 6d64a81fc..e459c7698 100644--- a/web/app/ui/Input.tsx+++ b/web/app/ui/Input.tsx@@ -3,15 +3,12 @@ import cx from 'clsx'import _isEmpty from 'lodash/isEmpty'import React, { memo } from 'react'-import Beta from '~/ui/Beta'-interface InputProps {label?: React.ReactNodehint?: React.ReactNodeclassName?: stringerror?: string | null | booleandisabled?: boolean- isBeta?: booleanhintPosition?: 'top' | 'bottom'classes?: {input?: string@@ -26,7 +23,6 @@ const Input = ({className,error,disabled,- isBeta,classes,hintPosition = 'bottom',...rest@@ -36,16 +32,7 @@ const Input = ({return (<Field as='div' className={className}>- {label ? (- <Label className='mb-1 flex text-sm font-medium text-gray-900 dark:text-gray-200'>- {label}- {isBeta ? (- <div className='ml-5'>- <Beta />- </div>- ) : null}- </Label>- ) : null}+ {label ? <Label className='mb-1 flex text-sm font-medium text-gray-900 dark:text-gray-200'>{label}</Label> : null}{hint && hintPosition === 'top' ? (<Description className='mt-1 text-sm whitespace-pre-line text-gray-500 dark:text-gray-300'>{hint}</Description>) : null}diff --git a/web/app/ui/Modal.tsx b/web/app/ui/Modal.tsxindex ca74dcd0b..f58e59141 100644--- a/web/app/ui/Modal.tsx+++ b/web/app/ui/Modal.tsx@@ -9,7 +9,6 @@ import {import React, { memo } from 'react'import { useTranslation } from 'react-i18next'-import Beta from '~/ui/Beta'import { cn } from '~/utils/generic'import Spin from './icons/Spin'@@ -28,7 +27,6 @@ interface ModalProps {submitType?: 'regular' | 'danger'size?: 'regular' | 'large'customButtons?: React.ReactNode- isBeta?: booleanisLoading?: booleanoverflowVisible?: boolean}@@ -46,7 +44,6 @@ const Modal = ({submitType = 'regular',size = 'regular',customButtons,- isBeta,isLoading,submitDisabled,overflowVisible,@@ -110,10 +107,7 @@ const Modal = ({'justify-center sm:justify-start': closeText,})}>- <div>- {title}- {isBeta ? <Beta className='ml-10' /> : null}- </div>+ <div>{title}</div>{!closeText ? (<buttontype='button'