Replace the Spinner in payments

This commit is contained in:
Manav Rathi 2024-04-01 15:31:55 +05:30
parent 28cf7d76d5
commit 8ae7ae2de9
No known key found for this signature in database
3 changed files with 20 additions and 9 deletions

View file

@ -1,10 +1,5 @@
import * as React from "react";
import { Spinner } from "react-bootstrap";
export const EnteSpinner: React.FC = () => {
return (
<Spinner animation="border" variant="success" role="status">
<span className="sr-only">Loading...</span>
</Spinner>
);
export const Spinner: React.FC = () => {
return <div className="loading-spinner"></div>;
};

View file

@ -1,5 +1,5 @@
import { Container } from "components/Container";
import { EnteSpinner } from "components/EnteSpinner";
import { Spinner } from "components/EnteSpinner";
import * as React from "react";
import { parseAndHandleRequest } from "services/billingService";
import { CUSTOM_ERROR } from "utils/error";
@ -35,7 +35,7 @@ export default function Home() {
{errorMessageView ? (
<div>{constants.SOMETHING_WENT_WRONG}</div>
) : (
loading && <EnteSpinner />
loading && <Spinner />
)}
</Container>
);

View file

@ -20,3 +20,19 @@ body {
display: flex;
flex-direction: column;
}
.loading-spinner {
color: #28a745;
width: 2rem;
height: 2rem;
border: 0.25em solid currentColor;
border-right-color: transparent;
border-radius: 50%;
animation: 0.75s linear infinite spinner-border;
}
@keyframes spinner-border {
100% {
transform: rotate(360deg);
}
}