From 301b2a12f6cef5f0383478fee208eea41f9ea978 Mon Sep 17 00:00:00 2001 From: gestchild Date: Wed, 22 May 2024 13:51:34 +0100 Subject: [PATCH] remove comments/TODOs --- .../ExhibitionGuideLinks/ExhibitionGuideLinks.tsx | 2 +- .../components/GuideMediaStop/GuideMediaStop.tsx | 11 +++++------ prismic-model/src/exhibition-highlight-tours.ts | 6 ------ prismic-model/src/exhibition-texts.ts | 2 -- 4 files changed, 6 insertions(+), 15 deletions(-) diff --git a/content/webapp/components/ExhibitionGuideLinks/ExhibitionGuideLinks.tsx b/content/webapp/components/ExhibitionGuideLinks/ExhibitionGuideLinks.tsx index 00cf004ea4..ec415a60d0 100644 --- a/content/webapp/components/ExhibitionGuideLinks/ExhibitionGuideLinks.tsx +++ b/content/webapp/components/ExhibitionGuideLinks/ExhibitionGuideLinks.tsx @@ -98,7 +98,7 @@ export const ExhibitionGuideLinks: FunctionComponent = ({ }; type ResourceProps = { - textPathname: string | undefined; // TODO make these more specifid=c? + textPathname: string | undefined; audioPathname: string | undefined; videoPathname: string | undefined; }; diff --git a/content/webapp/components/GuideMediaStop/GuideMediaStop.tsx b/content/webapp/components/GuideMediaStop/GuideMediaStop.tsx index 4ec0c7a6b4..895e2b256d 100644 --- a/content/webapp/components/GuideMediaStop/GuideMediaStop.tsx +++ b/content/webapp/components/GuideMediaStop/GuideMediaStop.tsx @@ -12,12 +12,11 @@ import { } from '@weco/content/components/Body/GridFactory'; export type Props = { - // TODO - number: any; - title: any; - audio: any; - video: any; - type: any; + number: number; + title: string; + audio: string; + video: string; + type: string; }; const GuideMediaStop: FunctionComponent = ({ diff --git a/prismic-model/src/exhibition-highlight-tours.ts b/prismic-model/src/exhibition-highlight-tours.ts index a856925161..0670e8fa20 100644 --- a/prismic-model/src/exhibition-highlight-tours.ts +++ b/prismic-model/src/exhibition-highlight-tours.ts @@ -1,8 +1,6 @@ -// import { CustomType } from './types/CustomType'; import title from './parts/title'; import { documentLink, mediaLink } from './parts/link'; import list from './parts/list'; -// import image from './parts/image'; // TODO do we need this? import { multiLineText } from './parts/text'; import embed from './parts/embed'; import number from './parts/number'; @@ -26,16 +24,12 @@ const exhibitionHighlightTours = { Stops: { stops: list('Stop', { title, - // image: image('image'), // TODO do we need this? number: number('Stop number', { placeholder: 'Stop number for this content', }), 'audio-with-description': mediaLink( 'Audio with description (.mp3 file)' ), - // 'audio-without-description': mediaLink( // TODO do we need this? - // 'Audio without description (.mp3 file)' - // ), 'bsl-video': embed('Embed (Youtube)'), transcript: multiLineText('Transcript'), }), diff --git a/prismic-model/src/exhibition-texts.ts b/prismic-model/src/exhibition-texts.ts index f11f8c0630..1b485d5220 100644 --- a/prismic-model/src/exhibition-texts.ts +++ b/prismic-model/src/exhibition-texts.ts @@ -2,7 +2,6 @@ import { CustomType } from './types/CustomType'; import title from './parts/title'; import { documentLink } from './parts/link'; import list from './parts/list'; -// import image from './parts/image'; // TODO is this needed? import { multiLineText } from './parts/text'; const exhibitionTexts: CustomType = { @@ -34,7 +33,6 @@ const exhibitionTexts: CustomType = { // https://wellcome.slack.com/archives/CUA669WHH/p1658396258859169 tombstone: multiLineText('Tombstone'), caption: multiLineText('Caption'), - // image: image('image'), // TODO is this needed? }), }, },