Greff3 commited on
Commit
f07e67a
·
verified ·
1 Parent(s): 3b1f8cd

Update src/components/preview/preview.tsx

Browse files
Files changed (1) hide show
  1. src/components/preview/preview.tsx +2 -0
src/components/preview/preview.tsx CHANGED
@@ -60,6 +60,8 @@ function Preview({
60
  <FaLaptopCode />
61
  Back to Editor
62
  </button>
 
 
63
  <button
64
  className="bg-white lg:bg-gray-950 shadow-md text-gray-950 lg:text-white text-xs lg:text-sm font-medium py-2 px-3 lg:px-4 rounded-lg flex items-center gap-2 border border-gray-100 lg:border-gray-900 hover:brightness-150 transition-all duration-100 cursor-pointer"
65
  onClick={handleRefreshIframe}
 
60
  <FaLaptopCode />
61
  Back to Editor
62
  </button>
63
+ {html === defaultHTML && (
64
+ )}
65
  <button
66
  className="bg-white lg:bg-gray-950 shadow-md text-gray-950 lg:text-white text-xs lg:text-sm font-medium py-2 px-3 lg:px-4 rounded-lg flex items-center gap-2 border border-gray-100 lg:border-gray-900 hover:brightness-150 transition-all duration-100 cursor-pointer"
67
  onClick={handleRefreshIframe}