mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05: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:
parent
306b2b7727
commit
7b7c85527f
1 changed files with 8 additions and 9 deletions
|
@ -104,13 +104,6 @@ function ActionButton({
|
||||||
disabled,
|
disabled,
|
||||||
}: ActionButtonProps) {
|
}: ActionButtonProps) {
|
||||||
const { t } = useTranslation()
|
const { t } = useTranslation()
|
||||||
const classNames = require('classnames')
|
|
||||||
const classes = classNames(
|
|
||||||
'btn',
|
|
||||||
'btn-secondary-info',
|
|
||||||
'btn-secondary',
|
|
||||||
'text-capitalize'
|
|
||||||
)
|
|
||||||
if (!hasFeature) {
|
if (!hasFeature) {
|
||||||
return (
|
return (
|
||||||
<Button
|
<Button
|
||||||
|
@ -132,11 +125,17 @@ function ActionButton({
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{disabled ? (
|
{disabled ? (
|
||||||
<button disabled className={classes}>
|
<button
|
||||||
|
disabled
|
||||||
|
className="btn btn-secondary-info btn-secondary text-capitalize"
|
||||||
|
>
|
||||||
{t('link')}
|
{t('link')}
|
||||||
</button>
|
</button>
|
||||||
) : (
|
) : (
|
||||||
<a className={classes} href={linkPath}>
|
<a
|
||||||
|
className="btn btn-secondary-info btn-secondary text-capitalize"
|
||||||
|
href={linkPath}
|
||||||
|
>
|
||||||
{t('link')}
|
{t('link')}
|
||||||
</a>
|
</a>
|
||||||
)}
|
)}
|
||||||
|
|
Loading…
Reference in a new issue