globals.js 825 B

1234567891011121314151617181920212223242526272829303132
  1. export const Icons = {
  2. barrier: require('./assets/barrier.png'),
  3. bump: require('./assets/bump.png'),
  4. washroom: require('./assets/washroom.png'),
  5. pothole: require('./assets/pothole.png'),
  6. roadblock: require('./assets/roadblock.png'),
  7. park: require('./assets/park.png'),
  8. }
  9. export const API_URL = 'http://10.0.0.151:8000';
  10. export const OAUTH_CLIENT_ID = 'atlas.clicknpush';
  11. export const adaptIcon = (icon) => {
  12. if (icon == 'area inaccessible') {
  13. return 'roadblock'
  14. }
  15. if (icon == 'path blocked') {
  16. return 'barrier'
  17. }
  18. if (icon == 'path concern') {
  19. return 'bump'
  20. }
  21. if (icon == 'information') {
  22. return 'info'
  23. }
  24. if (icon == 'power needed') {
  25. return 'park'
  26. }
  27. if (icon == 'curb cut issue') {
  28. return 'pothole'
  29. }
  30. }