From de253d2ed53279d76396f340d6c71163a8d8afb9 Mon Sep 17 00:00:00 2001 From: Antoine Caron Date: Mon, 29 Apr 2024 22:45:35 +0200 Subject: [PATCH] ci(format): fix format of files --- app/templates/talks/talkBranded/page.tsx | 14 ++++++++------ .../templates/talk/Talks.composition.tsx | 16 +++++++++------- .../templates/talk/branded/BrandedSpeaker.tsx | 7 ++++++- .../talk/branded/BrandedSpeakerInfos.tsx | 2 +- .../templates/talk/branded/TalkBranded.tsx | 9 +++++---- .../compositions/templates/talk/talks.types.ts | 2 +- src/data/config/templates/talkBrandedConfig.ts | 16 +++++++++------- 7 files changed, 39 insertions(+), 27 deletions(-) diff --git a/app/templates/talks/talkBranded/page.tsx b/app/templates/talks/talkBranded/page.tsx index 1d60ca9c75..1d1de1f03e 100644 --- a/app/templates/talks/talkBranded/page.tsx +++ b/app/templates/talks/talkBranded/page.tsx @@ -61,12 +61,14 @@ export default function BrandedTalkPage() { startingDate, location, logoUrl, - speakers: [{ - pictureUrl: speakerPicture, - name: speakersNames, - company: speakersCompany, - job: speakersJob, - }], + speakers: [ + { + pictureUrl: speakerPicture, + name: speakersNames, + company: speakersCompany, + job: speakersJob, + }, + ], }; const encodedParams = encodeObjectValues({ diff --git a/remotion/compositions/templates/talk/Talks.composition.tsx b/remotion/compositions/templates/talk/Talks.composition.tsx index d40db1e086..58fb3b896b 100644 --- a/remotion/compositions/templates/talk/Talks.composition.tsx +++ b/remotion/compositions/templates/talk/Talks.composition.tsx @@ -52,13 +52,15 @@ export const TalksComposition: React.FC = () => { location: '5 Place Jules Ferry, 69006.', logoUrl: 'https://user-images.githubusercontent.com/72607059/233019842-047a34a4-77c1-4200-adc8-c70a6daf8f10.svg', - speakers: [{ - pictureUrl: - 'https://res.cloudinary.com/startup-grind/image/upload/c_fill,dpr_2.0,f_auto,g_center,h_250,q_auto:good,w_250/v1/gcs/platform-data-goog/events/20200911_094649_MbC4W4N.jpg', - name: 'Julien Landuré', - company: 'Zenika Nantes', - job: 'CTO / GDE', - }], + speakers: [ + { + pictureUrl: + 'https://res.cloudinary.com/startup-grind/image/upload/c_fill,dpr_2.0,f_auto,g_center,h_250,q_auto:good,w_250/v1/gcs/platform-data-goog/events/20200911_094649_MbC4W4N.jpg', + name: 'Julien Landuré', + company: 'Zenika Nantes', + job: 'CTO / GDE', + }, + ], }} /> diff --git a/remotion/compositions/templates/talk/branded/BrandedSpeaker.tsx b/remotion/compositions/templates/talk/branded/BrandedSpeaker.tsx index 3a56b85374..ddca30065e 100644 --- a/remotion/compositions/templates/talk/branded/BrandedSpeaker.tsx +++ b/remotion/compositions/templates/talk/branded/BrandedSpeaker.tsx @@ -81,7 +81,12 @@ export const BrandedSpeaker = ({ top: slideIn, }} > - + ); diff --git a/remotion/compositions/templates/talk/branded/BrandedSpeakerInfos.tsx b/remotion/compositions/templates/talk/branded/BrandedSpeakerInfos.tsx index 4e97932201..976c3b17f9 100644 --- a/remotion/compositions/templates/talk/branded/BrandedSpeakerInfos.tsx +++ b/remotion/compositions/templates/talk/branded/BrandedSpeakerInfos.tsx @@ -8,7 +8,7 @@ type BrandedSpeakerInfosProps = { name: string; company?: string; job?: string; - iconStyle ?: React.CSSProperties; + iconStyle?: React.CSSProperties; }; export const BrandedSpeakerInfos = ({ diff --git a/remotion/compositions/templates/talk/branded/TalkBranded.tsx b/remotion/compositions/templates/talk/branded/TalkBranded.tsx index 1d401604c0..c87d71e746 100644 --- a/remotion/compositions/templates/talk/branded/TalkBranded.tsx +++ b/remotion/compositions/templates/talk/branded/TalkBranded.tsx @@ -22,11 +22,11 @@ export const TalkBranded = ({ logoUrl, speakers, }: z.infer) => { - const speakersData = speakers; const baseOffsetY = speakersData.length > 1 ? -50 : 0; const avatarSize = speakersData.length > 1 ? 150 : 200; - const speakerIconStyle : React.CSSProperties | undefined = speakersData.length > 1 ? { fontSize: "2rem"} : undefined; + const speakerIconStyle: React.CSSProperties | undefined = + speakersData.length > 1 ? {fontSize: '2rem'} : undefined; return ( ); -} +}; diff --git a/remotion/compositions/templates/talk/talks.types.ts b/remotion/compositions/templates/talk/talks.types.ts index c30a18f7bb..e8c51475aa 100644 --- a/remotion/compositions/templates/talk/talks.types.ts +++ b/remotion/compositions/templates/talk/talks.types.ts @@ -6,7 +6,7 @@ export const TalkBrandedSpeakerSchema = z.object({ name: z.string(), company: z.string().optional(), job: z.string().optional(), -}) +}); export const TalkBrandedSchema = z.object({ backgroundColor: zColor(), diff --git a/src/data/config/templates/talkBrandedConfig.ts b/src/data/config/templates/talkBrandedConfig.ts index 491cf4a34d..bc30b3cdce 100644 --- a/src/data/config/templates/talkBrandedConfig.ts +++ b/src/data/config/templates/talkBrandedConfig.ts @@ -14,12 +14,14 @@ export const TalkBrandedConfig: CompositionProps = { location: '5 Place Jules Ferry, 69006.', logoUrl: 'https://user-images.githubusercontent.com/72607059/233019842-047a34a4-77c1-4200-adc8-c70a6daf8f10.svg', - speakers: [{ - pictureUrl: - 'https://res.cloudinary.com/startup-grind/image/upload/c_fill,dpr_2.0,f_auto,g_center,h_250,q_auto:good,w_250/v1/gcs/platform-data-goog/events/20200911_094649_MbC4W4N.jpg', - name: 'Julien Landuré', - company: 'Zenika Nantes', - job: 'CTO / GDE', - }], + speakers: [ + { + pictureUrl: + 'https://res.cloudinary.com/startup-grind/image/upload/c_fill,dpr_2.0,f_auto,g_center,h_250,q_auto:good,w_250/v1/gcs/platform-data-goog/events/20200911_094649_MbC4W4N.jpg', + name: 'Julien Landuré', + company: 'Zenika Nantes', + job: 'CTO / GDE', + }, + ], }, };