Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: replace Spinner of Shell with the DS one #174

Merged
merged 7 commits into from
Nov 19, 2024
Merged
2 changes: 1 addition & 1 deletion src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ import {
type NewAction,
registerActions,
type SecondaryBarComponentProps,
Spinner,
useAuthenticated
} from '@zextras/carbonio-shell-ui';
import { useTranslation } from 'react-i18next';
import { Route } from 'react-router-dom';

import { RemindersManager } from './components/RemindersManager';
import { Spinner } from './components/Spinner';
import { TASKS_APP_ID, TASKS_ROUTE } from './constants';
import { ProvidersWrapper } from './providers/ProvidersWrapper';

Expand Down
15 changes: 15 additions & 0 deletions src/components/Spinner.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*
* SPDX-FileCopyrightText: 2024 Zextras <https://www.zextras.com>
*
* SPDX-License-Identifier: AGPL-3.0-only
*/

import React from 'react';

import { Container, Spinner as SpinnerDS } from '@zextras/carbonio-design-system';

export const Spinner = (): React.JSX.Element => (
<Container>
<SpinnerDS color={'primary'} />
</Container>
);