Skip to content

Commit

Permalink
fix: compatibility Loading spinner
Browse files Browse the repository at this point in the history
  • Loading branch information
LeleDallas committed May 16, 2023
1 parent c0d374f commit e14e9e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/Components/LoadingSpinner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ const LoadingSpinner = ({ message, size = "large" }: LoadingSpinnerProps) =>
justifyContent: "center",
verticalAlign: "middle",
}}>
<Spin size={size} style={{ position: "absolute", top: "50%" }} tip={message} />
<Spin size={size} style={{ position: "absolute", top: "50%" }} tip={message} >
<div />
</Spin>
</div>

export default LoadingSpinner
2 changes: 1 addition & 1 deletion test/Components/LoadingSpinner.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import '@testing-library/jest-dom';

describe('Loading Spinner', () => {
it('should return the initial state', () => {
const {getByText} = render(<LoadingSpinner message="test"></LoadingSpinner>)
const { getByText } = render(<LoadingSpinner message="test" />)
expect(getByText("test")).toBeInTheDocument()
});
});

0 comments on commit e14e9e6

Please sign in to comment.