import styled from 'styled-components';

const SpinnerWrapper = styled.span`
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
`;

export default SpinnerWrapper;

import styled from 'styled-components';

const SpinnerWrapper = styled.span`
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
`;

export default SpinnerWrapper;

Fix positioning of the spinner inside the button
Fix positioning of the spinner inside the button
