Skip to content

Commit

Permalink
Important: Correct the loading spin for lineage embedded and lineage …
Browse files Browse the repository at this point in the history
…view
  • Loading branch information
jjoyce0510 committed Dec 8, 2023
1 parent 21edcce commit 64983fc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { Pagination, Typography } from 'antd';
import { Pagination, Spin, Typography } from 'antd';
import { LoadingOutlined } from '@ant-design/icons';
import styled from 'styled-components';
import { FacetFilterInput, FacetMetadata, SearchResults as SearchResultType } from '../../../../../../types.generated';
Expand Down Expand Up @@ -61,7 +61,7 @@ const LoadingContainer = styled.div`
`;

const StyledLoading = styled(LoadingOutlined)`
font-size: 36px;
font-size: 32px;
color: ${ANTD_GRAY[7]};
padding-bottom: 18px;
]`;
Expand Down Expand Up @@ -128,7 +128,7 @@ export const EmbeddedListSearchResults = ({
<ResultContainer>
{loading && (
<LoadingContainer>
<StyledLoading />
<Spin indicator={<StyledLoading />} />
</LoadingContainer>
)}
{!loading && (
Expand Down
5 changes: 3 additions & 2 deletions datahub-web-react/src/app/lineage/LineageLoadingSection.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as React from 'react';
import styled from 'styled-components';
import { Spin } from 'antd';
import { LoadingOutlined } from '@ant-design/icons';
import { ANTD_GRAY } from '../entity/shared/constants';

Expand All @@ -13,15 +14,15 @@ const Container = styled.div`
`;

const StyledLoading = styled(LoadingOutlined)`
font-size: 36px;
font-size: 32px;
color: ${ANTD_GRAY[7]};
padding-bottom: 18px;
]`;

export default function LineageLoadingSection() {
return (
<Container>
<StyledLoading />
<Spin indicator={<StyledLoading />} />
</Container>
);
}

0 comments on commit 64983fc

Please sign in to comment.