|
@@ -104,7 +104,13 @@ 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
|
|
@@ -124,14 +130,17 @@ function ActionButton({
|
|
|
)
|
|
)
|
|
|
} else {
|
|
} else {
|
|
|
return (
|
|
return (
|
|
|
- <Button
|
|
|
|
|
- bsStyle={null}
|
|
|
|
|
- className="btn-secondary-info btn-secondary"
|
|
|
|
|
- href={linkPath}
|
|
|
|
|
- disabled={disabled}
|
|
|
|
|
- >
|
|
|
|
|
- <span className="text-capitalize">{t('link')}</span>
|
|
|
|
|
- </Button>
|
|
|
|
|
|
|
+ <>
|
|
|
|
|
+ {disabled ? (
|
|
|
|
|
+ <button disabled className={classes}>
|
|
|
|
|
+ {t('link')}
|
|
|
|
|
+ </button>
|
|
|
|
|
+ ) : (
|
|
|
|
|
+ <a className={classes} href={linkPath}>
|
|
|
|
|
+ {t('link')}
|
|
|
|
|
+ </a>
|
|
|
|
|
+ )}
|
|
|
|
|
+ </>
|
|
|
)
|
|
)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|