Skip to content
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

add notice for non precise location search value #852

Merged
merged 1 commit into from
Jan 5, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion src/pages/Settings/content/formSections/MapPin.section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Heading from 'src/components/Heading'
import { Field } from 'react-final-form'
import Text from 'src/components/Text'
import { TextAreaField } from 'src/components/Form/Fields'
import { Box, Flex } from 'rebass'
import { Box, Flex, Link } from 'rebass'
import { FlexSectionContainer, ArrowIsSectionOpen } from './elements'
import { Map, TileLayer, Marker, Popup, ZoomControl } from 'react-leaflet'
import L from 'leaflet'
Expand Down Expand Up @@ -147,6 +147,26 @@ export class UserMapPinSection extends React.Component<IProps, IState> {
</Button>
</Box>
)}
<Box
bg={theme.colors.softblue}
mt={2}
p={2}
sx={{ borderRadius: '3px' }}
>
<Text small>
We are aware that location search may result in an inaccurate
position of your pin. If it happend, choose the closest location
to you. Pro tip : you can write your precise address in your
profile description & help find a fix{' '}
<Link
href="https://github.com/ONEARMY/community-platform/issues/739"
target="_blank"
sx={{ color: 'black', textDecoration: 'underline' }}
>
here.
</Link>
</Text>
</Box>
</Box>
</FlexSectionContainer>
)
Expand Down