Skip to content

Commit

Permalink
alter svg imports
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismclarke committed May 27, 2021
1 parent 0a3a340 commit 7f8b520
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions src/pages/Maps/Content/View/Popup.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as React from 'react';
import * as React from 'react'
import L from 'leaflet'
import { Image } from 'rebass'
import Flex from 'src/components/Flex'
import Text from 'src/components/Text'
import { Button } from 'src/components/Button'
Expand All @@ -15,7 +16,7 @@ import { inject } from 'mobx-react'
import { MapsStore } from 'src/stores/Maps/maps.store'
import { MAP_GROUPINGS } from 'src/stores/Maps/maps.groupings'
import Workspace from 'src/pages/User/workspace/Workspace'
import { ReactComponent as VerifiedBadgeIcon } from 'src/assets/icons/icon-verified-badge.svg'
import VerifiedBadgeIcon from 'src/assets/icons/icon-verified-badge.svg'

interface IProps {
activePin: IMapPin | IMapPinWithDetail
Expand Down Expand Up @@ -123,7 +124,8 @@ export class Popup extends React.Component<IProps> {
<Text large mb={1} display="flex">
{name}
{verifiedBadge && (
<VerifiedBadgeIcon
<Image
src={VerifiedBadgeIcon}
width="22px"
height="22px"
style={{ marginLeft: '5px' }}
Expand Down
4 changes: 2 additions & 2 deletions src/pages/User/content/UserPage/UserPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import PVCIcon from 'src/assets/images/plastic-types/pvc.svg'

import EventsIcon from 'src/assets/icons/icon-events.svg'
import HowToCountIcon from 'src/assets/icons/icon-how-to.svg'
import { ReactComponent as VerifiedBadgeIcon } from 'src/assets/icons/icon-verified-badge.svg'
import VerifiedBadgeIcon from 'src/assets/icons/icon-verified-badge.svg'
// import V4MemberIcon from 'src/assets/icons/icon-v4-member.svg'

import { IUploadedFileMeta } from 'src/stores/storage'
Expand Down Expand Up @@ -244,7 +244,7 @@ export class UserPage extends React.Component<
<UserStatsBox>
{user.badges?.verified && (
<UserStatsBoxItem style={{ marginBottom: '15px' }}>
<VerifiedBadgeIcon width="22px" height="22px" />
<Image src={VerifiedBadgeIcon} width="22px" height="22px" />
<Box ml="5px">Verified</Box>
</UserStatsBoxItem>
)}
Expand Down

0 comments on commit 7f8b520

Please sign in to comment.