mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-28 19:41:33 +02:00
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:
@@ -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>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user