Skip to content

Commit

Permalink
fix: #1634 Changed text from 'Planted on' to 'Captured on' in tree im…
Browse files Browse the repository at this point in the history
…age and info
  • Loading branch information
henlam committed Jun 9, 2023
1 parent 5204e78 commit 2c45af3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
6 changes: 3 additions & 3 deletions src/pages/trees/[treeid].js
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ export default function Tree({
}}
>
<Icon icon={CalendarIcon} />
{`Planted on ${moment(tree.time_created).format(
{`Captured on ${moment(tree.time_created).format(
'MMMM Do, YYYY',
)}` || 'Unknown Date'}
</Typography>
Expand Down Expand Up @@ -497,7 +497,7 @@ export default function Tree({
}}
>
<Icon icon={CalendarIcon} />
{`Planted on ${moment(tree.time_created).format(
{`Captured on ${moment(tree.time_created).format(
'MMMM Do, YYYY',
)}` || 'Unknown Date'}
</Typography>
Expand Down Expand Up @@ -596,7 +596,7 @@ export default function Tree({
<TagList>
<TreeTag
TreeTagValue={new Date(tree.time_created).toLocaleDateString()}
title="Planted on"
title="Captured on"
icon={<Icon icon={CalendarIcon} />}
/>
<TreeTag
Expand Down
15 changes: 5 additions & 10 deletions src/pages/v2/captures/[captureid].js
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,7 @@ import TokenIcon from 'images/icons/token.svg';
import imagePlaceholder from 'images/image-placeholder.png';
import SearchIcon from 'images/search.svg';
import { useMapContext } from 'mapContext';
import {
getStakeHolderById,
getCapturesById,
getGrowerById,
getCountryByLatLon,
} from 'models/api';
import { getStakeHolderById, getCapturesById, getGrowerById, getCountryByLatLon } from 'models/api';
import * as pathResolver from 'models/pathResolver';
import * as utils from 'models/utils';

Expand Down Expand Up @@ -260,7 +255,7 @@ export default function Capture({
}}
>
<Icon icon={CalendarIcon} />
{`Planted on ${moment(tree.created_at).format(
{`Captured on ${moment(tree.created_at).format(
'MMMM Do, YYYY',
)}` || 'Unknown Date'}
</Typography>
Expand Down Expand Up @@ -497,7 +492,7 @@ export default function Capture({
}}
>
<Icon icon={CalendarIcon} />
{`Planted on ${moment(tree.created_at).format(
{`Captured on ${moment(tree.created_at).format(
'MMMM Do, YYYY',
)}` || 'Unknown Date'}
</Typography>
Expand Down Expand Up @@ -594,7 +589,7 @@ export default function Capture({
<TagList>
<TreeTag
TreeTagValue={new Date(tree.created_at).toLocaleDateString()}
title="Planted on"
title="Captured on"
icon={<Icon icon={CalendarIcon} />}
/>
<TreeTag
Expand Down Expand Up @@ -692,7 +687,7 @@ export default function Capture({
mt: [10, 20],
}}
/>

<Box height={20} />
{nextExtraIsEmbed && (
<Portal
Expand Down

0 comments on commit 2c45af3

Please sign in to comment.