Skip to content

🎥 Make videos programmatically with React

Update Card.tsx

Jonny Burgerca01f319d202
diff --git a/packages/docs/src/remotion/HomepageVideo/cards/Card.tsx b/packages/docs/src/remotion/HomepageVideo/cards/Card.tsx
index c04d76128d..386b28dbc2 100644
--- a/packages/docs/src/remotion/HomepageVideo/cards/Card.tsx
+++ b/packages/docs/src/remotion/HomepageVideo/cards/Card.tsx
@@ -259,13 +259,13 @@ export const Card: React.FC<{
className={styles.content}
>
{content}
+ {withSwitcher ? (
+ <>
+ <Switcher onTap={onLeft} type="left" theme={theme} />
+ <Switcher onTap={onRight} type="right" theme={theme} />
+ </>
+ ) : null}
</AbsoluteFill>
- {withSwitcher ? (
- <>
- <Switcher onTap={onLeft} type="left" theme={theme} />
- <Switcher onTap={onRight} type="right" theme={theme} />
- </>
- ) : null}
</div>
);
};