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!

updated beta labels

Blue Mousea43c32f5a67d
diff --git a/src/pages/Project/Settings/People/People.jsx b/src/pages/Project/Settings/People/People.jsx
index 0cc69bbd9..59f49545d 100644
--- a/src/pages/Project/Settings/People/People.jsx
+++ b/src/pages/Project/Settings/People/People.jsx
@@ -15,7 +15,6 @@ import { isValidEmail } from 'utils/validator'
import Input from 'ui/Input'
import { WarningPin } from 'ui/Pin'
import Button from 'ui/Button'
-import Beta from 'ui/Beta'
import Modal from 'ui/Modal'
import {
roles, roleViewer, roleAdmin, INVITATION_EXPIRES_IN,
@@ -266,9 +265,6 @@ const People = ({
<div>
<h3 className='flex items-center mt-2 text-lg font-bold text-gray-900 dark:text-gray-50'>
{t('project.settings.people')}
- <div className='ml-5'>
- <Beta />
- </div>
</h3>
<p className='text-sm text-gray-500 dark:text-gray-400'>
{t('project.settings.inviteCoworkers')}
diff --git a/src/pages/Project/Settings/ProjectSettings.jsx b/src/pages/Project/Settings/ProjectSettings.jsx
index 51ee7021c..f5d030c45 100644
--- a/src/pages/Project/Settings/ProjectSettings.jsx
+++ b/src/pages/Project/Settings/ProjectSettings.jsx
@@ -241,6 +241,7 @@ const ProjectSettings = ({
className='mt-4'
onChange={handleInput}
error={beenSubmitted ? errors.ipBlacklist : null}
+ isBeta
/>
<Checkbox
checked={Boolean(form.active)}
diff --git a/src/pages/UserSettings/UserSettings.jsx b/src/pages/UserSettings/UserSettings.jsx
index 7a2f3b20a..0231e0437 100644
--- a/src/pages/UserSettings/UserSettings.jsx
+++ b/src/pages/UserSettings/UserSettings.jsx
@@ -578,18 +578,12 @@ const UserSettings = ({
<hr className='mt-5' />
<h3 className='flex items-center mt-2 text-lg font-bold text-gray-900 dark:text-gray-50'>
{t('profileSettings.2fa')}
- <div className='ml-5'>
- <Beta />
- </div>
</h3>
<TwoFA t={t} user={user} dontRemember={dontRemember} updateUserData={updateUserData} login={login} genericError={genericError} />
<hr className='mt-5' />
<h3 className='flex items-center mt-2 text-lg font-bold text-gray-900 dark:text-gray-50'>
{t('profileSettings.shared')}
- <div className='ml-5'>
- <Beta />
- </div>
</h3>
<div>
{!_isEmpty(user.sharedProjects) ? (
diff --git a/src/ui/Input.jsx b/src/ui/Input.jsx
index 2a3c8e2df..002c60001 100644
--- a/src/ui/Input.jsx
+++ b/src/ui/Input.jsx
@@ -3,9 +3,10 @@ import cx from 'clsx'
import _isEmpty from 'lodash/isEmpty'
import PropTypes from 'prop-types'
import { ExclamationCircleIcon } from '@heroicons/react/solid'
+import Beta from 'ui/Beta'
const Input = ({
- label, hint, placeholder, type, id, name, className, onChange, error, value, disabled, onKeyDown,
+ label, hint, placeholder, type, id, name, className, onChange, error, value, disabled, onKeyDown, isBeta,
}) => {
const identifier = id || name || type
const isError = !_isEmpty(error)
@@ -17,7 +18,14 @@ const Input = ({
'flex justify-between': label && hint,
})}
>
- <label htmlFor={identifier} className='block text-sm font-medium text-gray-700 dark:text-gray-200'>{label}</label>
+ <label htmlFor={identifier} className='block text-sm font-medium text-gray-700 dark:text-gray-200 flex'>
+ {label}
+ {isBeta && (
+ <div className='ml-5'>
+ <Beta />
+ </div>
+ )}
+ </label>
</div>
<div className='mt-1 relative'>
<input
@@ -65,6 +73,7 @@ Input.propTypes = {
]),
name: PropTypes.string,
disabled: PropTypes.bool,
+ isBeta: PropTypes.bool,
}
Input.defaultProps = {
@@ -79,6 +88,7 @@ Input.defaultProps = {
error: null,
name: '',
disabled: false,
+ isBeta: false,
}
export default memo(Input)