enzostvs HF Staff commited on
Commit
54245c9
·
1 Parent(s): e46d908
components/editor/preview/index.tsx CHANGED
@@ -558,13 +558,12 @@ export const Preview = ({ isNew }: { isNew: boolean }) => {
558
  {!isNew &&
559
  !hasUnsavedChanges &&
560
  !currentCommit &&
561
- !project?.space_id && (
562
  <div className="top-0 left-0 right-0 z-20 bg-blue-500/90 backdrop-blur-sm border-b border-blue-600 px-4 py-2 flex items-center justify-between gap-3 text-sm w-full">
563
  <div className="flex items-center gap-2 flex-1">
564
  <TriangleAlert className="size-4 text-blue-900 flex-shrink-0" />
565
  <span className="text-blue-900 font-medium">
566
- Private project preview. This project is not deployed
567
- publicly.
568
  </span>
569
  </div>
570
  <button
 
558
  {!isNew &&
559
  !hasUnsavedChanges &&
560
  !currentCommit &&
561
+ project?.private && (
562
  <div className="top-0 left-0 right-0 z-20 bg-blue-500/90 backdrop-blur-sm border-b border-blue-600 px-4 py-2 flex items-center justify-between gap-3 text-sm w-full">
563
  <div className="flex items-center gap-2 flex-1">
564
  <TriangleAlert className="size-4 text-blue-900 flex-shrink-0" />
565
  <span className="text-blue-900 font-medium">
566
+ Private project preview. Some features may not work.
 
567
  </span>
568
  </div>
569
  <button