From acc5bf721a9e28afb709d6049efb17ae206275bb Mon Sep 17 00:00:00 2001 From: Matt Jones Date: Mon, 1 Jun 2020 14:57:35 +1000 Subject: [PATCH] feat: Support custom frame URLs --- src/Playroom/Frames/Frames.tsx | 10 +++++----- src/Playroom/Frames/frameSrc.ts | 19 +++++++++++++++++++ 2 files changed, 24 insertions(+), 5 deletions(-) create mode 100644 src/Playroom/Frames/frameSrc.ts diff --git a/src/Playroom/Frames/Frames.tsx b/src/Playroom/Frames/Frames.tsx index e10c954a..30c05757 100644 --- a/src/Playroom/Frames/Frames.tsx +++ b/src/Playroom/Frames/Frames.tsx @@ -6,6 +6,7 @@ import { PlayroomProps } from '../Playroom'; import { Strong } from '../Strong/Strong'; import { Text } from '../Text/Text'; import playroomConfig from '../../config'; +import frameSrc from './frameSrc'; // @ts-ignore import styles from './Frames.less'; @@ -54,11 +55,10 @@ export default function Frames({ code, themes, widths }: FramesProps) {