Skip to content

Commit

Permalink
Updates location.
Browse files Browse the repository at this point in the history
  • Loading branch information
coreyleelarson committed Aug 18, 2023
1 parent e2e01be commit 85a2458
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 8 deletions.
30 changes: 23 additions & 7 deletions contentful/export.json
Original file line number Diff line number Diff line change
Expand Up @@ -1481,16 +1481,16 @@
"id": "location",
"type": "ContentType",
"createdAt": "2023-08-14T22:02:40.311Z",
"updatedAt": "2023-08-14T22:18:27.447Z",
"updatedAt": "2023-08-18T07:08:05.135Z",
"environment": {
"sys": {
"id": "master",
"type": "Link",
"linkType": "Environment"
}
},
"publishedVersion": 3,
"publishedAt": "2023-08-14T22:18:27.447Z",
"publishedVersion": 5,
"publishedAt": "2023-08-18T07:08:05.135Z",
"firstPublishedAt": "2023-08-14T22:02:40.700Z",
"createdBy": {
"sys": {
Expand All @@ -1506,8 +1506,8 @@
"id": "4anSnW0ZH6blNIo3LDZrb1"
}
},
"publishedCounter": 2,
"version": 4,
"publishedCounter": 3,
"version": 6,
"publishedBy": {
"sys": {
"type": "Link",
Expand Down Expand Up @@ -1553,6 +1553,17 @@
"disabled": false,
"omitted": false
},
{
"id": "location",
"name": "Location",
"type": "Symbol",
"localized": false,
"required": false,
"validations": [
],
"disabled": false,
"omitted": false
},
{
"id": "description",
"name": "Description",
Expand Down Expand Up @@ -2497,7 +2508,7 @@
"linkType": "Space"
}
},
"version": 4,
"version": 6,
"createdAt": "2023-08-14T22:02:40.816Z",
"createdBy": {
"sys": {
Expand All @@ -2506,7 +2517,7 @@
"linkType": "User"
}
},
"updatedAt": "2023-08-14T22:18:28.057Z",
"updatedAt": "2023-08-18T07:08:06.033Z",
"updatedBy": {
"sys": {
"id": "4anSnW0ZH6blNIo3LDZrb1",
Expand Down Expand Up @@ -2545,6 +2556,11 @@
"widgetId": "singleLine",
"widgetNamespace": "builtin"
},
{
"fieldId": "location",
"widgetId": "singleLine",
"widgetNamespace": "builtin"
},
{
"fieldId": "description",
"widgetId": "richTextEditor",
Expand Down
2 changes: 1 addition & 1 deletion src/components/molecules/EventMetadata/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const EventMetadata = ({ className, event }: EventMetadataProps) => {
const separatorText = " / ";

const locationText = useMemo(
() => event.fields.location?.fields.name,
() => event.fields.location?.fields.location,
[event]
);

Expand Down
1 change: 1 addition & 0 deletions src/types/contentful/TypeLocation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export interface TypeLocationFields {
label?: EntryFieldTypes.Symbol;
name: EntryFieldTypes.Symbol;
address?: EntryFieldTypes.Symbol;
location?: EntryFieldTypes.Symbol;
description?: EntryFieldTypes.RichText;
url?: EntryFieldTypes.Symbol;
video?: EntryFieldTypes.AssetLink;
Expand Down

0 comments on commit 85a2458

Please sign in to comment.