Skip to content
This repository has been archived by the owner on Jan 25, 2024. It is now read-only.

Commit

Permalink
Update OffersPresentational.js
Browse files Browse the repository at this point in the history
Disable map rendering on user profiles trustrootsops/tr-ops#84
  • Loading branch information
robokow authored Mar 21, 2023
1 parent 0937ac6 commit 1784790
Showing 1 changed file with 0 additions and 38 deletions.
38 changes: 0 additions & 38 deletions modules/offers/client/components/OffersPresentational.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import React, { Component } from 'react';

// Internal dependencies
import '@/config/client/i18n';
import OfferLocation from './OfferLocation.component';
import OfferStatusButton from './OfferStatusButton';
import ReadMorePanel from '@/modules/core/client/components/ReadMorePanel';

Expand Down Expand Up @@ -120,40 +119,6 @@ export class OffersPresentational extends Component {
);
}

renderMap() {
const { isMobile } = this.state;
const { offer, t } = this.props;
return (
<>
{this.isHosting() && (
<OfferLocation
location={offer.location}
offerType={offer.type}
offerStatus={offer.status}
/>
)}
{this.isHosting() && (
<div className="panel-footer text-center">
<a
className="btn btn-sm btn-inverse-primary"
href={`/search?offer=${offer._id}`}
>
{t('Bigger map')}
</a>
{isMobile && (
<a
className="btn btn-sm btn-inverse-primary"
href={`geo:${offer.location[0]},${offer.location[1]};u=200`}
>
{t('Open on device')}
</a>
)}
</div>
)}
</>
);
}

renderOffer() {
const { t } = this.props;
const { isOwnOffer, offer, username } = this.props;
Expand All @@ -176,9 +141,6 @@ export class OffersPresentational extends Component {
{/* Hosting: no */}
{!this.isHosting() && this.renderHostingNo()}
</div>

{/* The map (React component) */}
{this.renderMap()}
</div>
);
}
Expand Down

0 comments on commit 1784790

Please sign in to comment.