1234567891011121314151617181920212223242526272829303132 |
- export const Icons = {
- barrier: require('./assets/barrier.png'),
- bump: require('./assets/bump.png'),
- washroom: require('./assets/washroom.png'),
- pothole: require('./assets/pothole.png'),
- roadblock: require('./assets/roadblock.png'),
- park: require('./assets/park.png'),
- }
- export const API_URL = 'http://10.0.0.151:8000';
- export const OAUTH_CLIENT_ID = 'atlas.clicknpush';
- export const adaptIcon = (icon) => {
- if (icon == 'area inaccessible') {
- return 'roadblock'
- }
- if (icon == 'path blocked') {
- return 'barrier'
- }
- if (icon == 'path concern') {
- return 'bump'
- }
- if (icon == 'information') {
- return 'info'
- }
- if (icon == 'power needed') {
- return 'park'
- }
- if (icon == 'curb cut issue') {
- return 'pothole'
- }
- }
|