From 5e372f3226db7887554a748c51e2c8acf591551d Mon Sep 17 00:00:00 2001 From: giuliohome Date: Tue, 1 Nov 2022 14:54:31 +0100 Subject: [PATCH 1/2] react typescript spinner example reviewed tested locally and on my k8s cluseter in the CI/CD pipeline with linting stage --- examples/05-typescript/src/common/spinner/spinner.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/05-typescript/src/common/spinner/spinner.tsx b/examples/05-typescript/src/common/spinner/spinner.tsx index 09e5405..05ce5b9 100644 --- a/examples/05-typescript/src/common/spinner/spinner.tsx +++ b/examples/05-typescript/src/common/spinner/spinner.tsx @@ -1,16 +1,16 @@ import * as React from 'react'; import { usePromiseTracker } from 'react-promise-tracker'; -import Loader from 'react-loader-spinner'; +import { ThreeDots } from 'react-loader-spinner'; import './spinner.css'; export const Spinner: React.FunctionComponent = () => { const { promiseInProgress } = usePromiseTracker(null); return ( - promiseInProgress && ( +
{ promiseInProgress && (
- -
+ +
} ) ); }; From c6c8f57caa0d5750d5ff458dbd0caebb74c1d41c Mon Sep 17 00:00:00 2001 From: giuliohome Date: Fri, 4 Nov 2022 12:26:17 +0100 Subject: [PATCH 2/2] react-loader-spinner current version 5.3.4 --- examples/05-typescript/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/05-typescript/package.json b/examples/05-typescript/package.json index d516506..0a1da73 100644 --- a/examples/05-typescript/package.json +++ b/examples/05-typescript/package.json @@ -38,7 +38,7 @@ "dependencies": { "react": "^16.8.5", "react-dom": "^16.8.5", - "react-loader-spinner": "^2.3.0", + "react-loader-spinner": "^5.3.4", "react-promise-tracker": "^2.1.0" } }