Merge pull request #10922 from overleaf/ds-remove-classNames

Removing `classNames` function from setting page widgets component

GitOrigin-RevId: df15640996d0b2dea691cab07ebbfc687b8e3f3f
This commit is contained in:
Davinder Singh 2022-12-16 14:45:40 +00:00 committed by Copybot
parent 306b2b7727
commit 7b7c85527f

View file

@ -104,13 +104,6 @@ function ActionButton({
disabled,
}: ActionButtonProps) {
const { t } = useTranslation()
const classNames = require('classnames')
const classes = classNames(
'btn',
'btn-secondary-info',
'btn-secondary',
'text-capitalize'
)
if (!hasFeature) {
return (
<Button
@ -132,11 +125,17 @@ function ActionButton({
return (
<>
{disabled ? (
<button disabled className={classes}>
<button
disabled
className="btn btn-secondary-info btn-secondary text-capitalize"
>
{t('link')}
</button>
) : (
<a className={classes} href={linkPath}>
<a
className="btn btn-secondary-info btn-secondary text-capitalize"
href={linkPath}
>
{t('link')}
</a>
)}