Bladeren bron

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

Removing `classNames` function from setting page widgets component

GitOrigin-RevId: df15640996d0b2dea691cab07ebbfc687b8e3f3f
Davinder Singh 3 jaren geleden
bovenliggende
commit
7b7c85527f

+ 8 - 9
services/web/frontend/js/features/settings/components/linking/integration-widget.tsx

@@ -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>
         )}