Advertisement
Guest User

Untitled

a guest
Oct 13th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. import * as React from 'react'
  2. import styled from '@emotion/styled'
  3. import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
  4. import { faSync } from '@fortawesome/free-solid-svg-icons'
  5.  
  6. import { getColor } from '../../theme/selectors'
  7.  
  8. type RefreshButtonProps = {}
  9.  
  10. const OutterBorder = styled.div`
  11. border: 0.18rem solid ${getColor('white')};
  12. background-color: ${getColor('darkGrey')};
  13. padding: 0.5rem;
  14. border-radius: 50%;
  15. width: 8rem;
  16. height: 8rem;
  17. `
  18.  
  19. const InnerBorder = styled.div`
  20. display: flex;
  21. align-items: center;
  22. justify-content: center;
  23. background-color: ${getColor('lightGrey')};
  24. color: white;
  25. font-size: 1.25rem;
  26. border: 0.5rem solid ${getColor('white')};
  27. border-radius: 50%;
  28. width: 100%;
  29. height: 100%;
  30. `
  31.  
  32. export const RefreshButton = () => {
  33. return (
  34. <OutterBorder>
  35. <InnerBorder>
  36. <FontAwesomeIcon icon={faSync} size="sm" />
  37. </InnerBorder>
  38. </OutterBorder>
  39. )
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement