From 3b3bfd7936a6610f10212ce6629e53da00927f53 Mon Sep 17 00:00:00 2001 From: Dawn Budge Date: Wed, 24 Oct 2018 15:23:39 +0100 Subject: [PATCH] Add isPodcast indicator --- components/x-teaser/Props.d.ts | 1 + components/x-teaser/readme.md | 1 + components/x-teaser/stories/knobs.js | 1 + 3 files changed, 3 insertions(+) diff --git a/components/x-teaser/Props.d.ts b/components/x-teaser/Props.d.ts index 042f65b68..bc6e5aa63 100644 --- a/components/x-teaser/Props.d.ts +++ b/components/x-teaser/Props.d.ts @@ -133,6 +133,7 @@ export interface Indicators { accessLevel: 'premium' | 'subscribed' | 'registered' | 'free'; isOpinion?: boolean; isColumn?: boolean; + isPodcast?: boolean; /** Methode packaging options */ isEditorsChoice?: boolean; isExclusive?: boolean; diff --git a/components/x-teaser/readme.md b/components/x-teaser/readme.md index 8ab9c9ca7..223c844f3 100644 --- a/components/x-teaser/readme.md +++ b/components/x-teaser/readme.md @@ -247,6 +247,7 @@ Property | Type | Notes `accessLevel` | String | "premium", "subscribed", "registered", or "free" `isOpinion` | Boolean | `isColumn` | Boolean | +`isPodcast` | Boolean | `isEditorsChoice` | Boolean | `isExclusive` | Boolean | `isScoop` | Boolean | diff --git a/components/x-teaser/stories/knobs.js b/components/x-teaser/stories/knobs.js index 34b12788d..21c39e9df 100644 --- a/components/x-teaser/stories/knobs.js +++ b/components/x-teaser/stories/knobs.js @@ -158,6 +158,7 @@ module.exports = (data, { object, text, number, boolean, date, selectV2 }) => { accessLevel: selectV2('Access level', ['free', 'registered', 'subscribed', 'premium'], data.indicators.accessLevel || 'free', Groups.Indicators), isOpinion: boolean('Is opinion', data.indicators.isOpinion, Groups.Indicators), isColumn: boolean('Is column', data.indicators.isColumn, Groups.Indicators), + isPodcast: boolean('Is podcast', data.indicators.isPodcast, Groups.Indicators), isEditorsChoice: boolean('Is editor\'s choice', data.indicators.isEditorsChoice, Groups.Indicators), isExclusive: boolean('Is exclusive', data.indicators.isExclusive, Groups.Indicators), isScoop: boolean('Is scoop', data.indicators.isScoop, Groups.Indicators)