From 446af28a268ebc071e97ec4ae38f9183db29eff3 Mon Sep 17 00:00:00 2001 From: rutik wankhade Date: Wed, 25 Jan 2023 22:57:12 +0530 Subject: [PATCH] feat: add title in preview theme --- src/components/Themes/PreviewTheme.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/Themes/PreviewTheme.js b/src/components/Themes/PreviewTheme.js index bd3fd9e..6ac000e 100644 --- a/src/components/Themes/PreviewTheme.js +++ b/src/components/Themes/PreviewTheme.js @@ -1,7 +1,7 @@ import React, { useState } from 'react'; const PreviewTheme = ({ config }) => { - const { bgColor, platform } = config; + const { bgColor, platform,title } = config; const [image, setImage] = useState() @@ -13,6 +13,9 @@ const PreviewTheme = ({ config }) => { style={{ backgroundColor: bgColor }} > + +

{title}

+
@@ -25,6 +28,9 @@ const PreviewTheme = ({ config }) => {
+ + + {image ?
preview