-
Notifications
You must be signed in to change notification settings - Fork 1
Info page #27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
client/pages/Info/Info.jsx
Outdated
| import './Info.scss'; | ||
| import slack from '../../../public/images/slack.svg'; | ||
| import facebook from '../../../public/images/facebook.svg'; | ||
| import github from '../../../public/images/github-logo.svg'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The path can be 'images/slack.svg'
| @@ -1,33 +1,42 @@ | |||
| import React from 'react'; | |||
| import { InfoMap } from '../../components/InfoMap/InfoMap'; | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what is the problem but map will work properly if you import it with other name (e.g. InfoMap2) and without curly braces
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@io-design without {} it will import GoogleApiWrapper since it's exported by default This is why you need to select different name.
client/pages/Info/Info.jsx
Outdated
| <div className="map"> | ||
| { | ||
| <InfoMap /> | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you need these curly braces?
client/pages/Info/Info.scss
Outdated
| position: relative !important; | ||
| height: 100% !important; | ||
| width: 100% !important; | ||
| border: 1px solid black; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This border style will ruin map styles.
| render() { | ||
| const { google } = this.props; | ||
| return ( | ||
| <Map google={google} zoom={14}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hate magic numbers :)
Merge with dev without issues, map is loaded only sometimes
http://skrinshoter.ru/s/060818/9TQQa3ry?a screenshot