From a770eeaa630ca4de120e0b29a6ff6156240abb6d Mon Sep 17 00:00:00 2001 From: Navaneeth Pk Date: Fri, 25 Jun 2021 23:49:45 +0530 Subject: [PATCH] Chore: Use tabler spinner instead of custom css (#328) --- frontend/src/Editor/ManageAppUsers.jsx | 5 ++-- frontend/src/_styles/theme.scss | 39 -------------------------- 2 files changed, 3 insertions(+), 41 deletions(-) diff --git a/frontend/src/Editor/ManageAppUsers.jsx b/frontend/src/Editor/ManageAppUsers.jsx index ed1dc38524..bb9d810748 100644 --- a/frontend/src/Editor/ManageAppUsers.jsx +++ b/frontend/src/Editor/ManageAppUsers.jsx @@ -138,6 +138,7 @@ class ManageAppUsers extends React.Component { const appId = app.id; const appLink = `${window.location.origin}/applications/`; const shareableLink = appLink + (this.props.slug || appId); + const slugButtonClass = isSlugVerificationInProgress? '' : slugError !== null ? 'is-invalid' : 'is-valid'; return (
@@ -183,13 +184,13 @@ class ManageAppUsers extends React.Component { {appLink}
{ e.persist(); this.delayedSlugChange(e); }} defaultValue={this.props.slug} /> { isSlugVerificationInProgress && (
- +
)}
diff --git a/frontend/src/_styles/theme.scss b/frontend/src/_styles/theme.scss index 0f0ad11d0c..94fcd6ca62 100644 --- a/frontend/src/_styles/theme.scss +++ b/frontend/src/_styles/theme.scss @@ -1634,42 +1634,3 @@ input:focus-visible { z-index: 3; } } - -.custom-spinner { - position: relative; - height: 20px; - width: 20px; - display: inline-block; - animation: around 5.4s infinite; -} - -@keyframes around { - 0% { - transform: rotate(0deg) - } - 100% { - transform: rotate(360deg) - } -} - -.custom-spinner::after, .custom-spinner::before { - content: ""; - background: white; - position: absolute; - display: inline-block; - width: 100%; - height: 100%; - border-width: 2px; - border-color: #4299e1 #4299e1 transparent transparent; - border-style: solid; - border-radius: 20px; - box-sizing: border-box; - top: 0; - left: 0; - animation: around 0.7s ease-in-out infinite; -} - -.custom-spinner::after { - animation: around 0.7s ease-in-out 0.1s infinite; - background: transparent; -}