fix: loading issue

This commit is contained in:
rutik wankhade 2023-02-16 11:30:23 +05:30
parent e9f7534a59
commit ea121e45dc
3 changed files with 7 additions and 7 deletions

View File

@ -46,7 +46,7 @@ const ComponentToImg = (props) => {
} }
}) })
console.log(data) // console.log(data)
await saveImage(data); await saveImage(data);

View File

@ -175,7 +175,7 @@ class Editor extends React.Component {
<div className="flex items-center"> <div className="flex items-center">
<div className="flex flex-col m-2 w-1/2"> {/* <div className="flex flex-col m-2 w-1/2">
<span className="font-medium pb-1">Pattern</span> <span className="font-medium pb-1">Pattern</span>
<select <select
onChange={(e) => this.setState({ pattern: e.target.value })} onChange={(e) => this.setState({ pattern: e.target.value })}
@ -202,9 +202,9 @@ class Editor extends React.Component {
<option>jupiter</option> <option>jupiter</option>
<option>sun</option> <option>sun</option>
</select> </select>
</div> </div> */}
<div className="flex flex-col m-2 w-1/2"> <div className="flex flex-col m-2 w-full">
<span className="font-medium pb-1">Platform</span> <span className="font-medium pb-1">Platform</span>
<select <select

View File

@ -6,11 +6,10 @@ const BasicTheme = ({ config }) => {
return ( return (
<div className="p-4 bg-white "> <div className="p-4 bg-white ">
<div className={`overflow-y-hidden flex text-gray-800 items-center ${pattern} ${platform} `} <div className={`overflow-y-hidden flex text-gray-800 items-center h-full ${platform} ${pattern} `}
style={{ backgroundColor: bgColor }} style={{ backgroundColor: bgColor }}
> >
<div className={`${font} bg-white md:w-10/12 m-auto flex flex-col pt-12 rounded-xl`}> <div className={`${font} bg-white md:w-10/12 m-auto flex flex-col pt-12 rounded-xl`}>
<div className="px-12"> <div className="px-12">
<div> <div>
@ -34,7 +33,8 @@ const BasicTheme = ({ config }) => {
<h2 className="text-xl ml-auto mr-2 font-semibold">{author}</h2> <h2 className="text-xl ml-auto mr-2 font-semibold">{author}</h2>
</div> </div>
</div>
</div>
</div> </div>