File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed 
alpha/new/[[...postIdArr]] Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -236,7 +236,9 @@ const Create = () => {
236236
237237            < div  className = "flex items-center justify-between" > 
238238              < div > 
239-                 { saveStatus  ===  "loading"  &&  ( < p  className = "text-xs lg:text-sm" > Auto-saving...</ p > ) } 
239+                 { saveStatus  ===  "loading"  &&  ( 
240+                   < p  className = "text-xs lg:text-sm" > Auto-saving...</ p > 
241+                 ) } 
240242                { saveStatus  ===  "error"  &&  savedTime  &&  ( 
241243                  < p  className = "text-xs text-red-600 lg:text-sm" > 
242244                    Error saving, last saved: { savedTime . toString ( ) } 
@@ -254,7 +256,11 @@ const Create = () => {
254256                disabled = { isDisabled } 
255257                className = "ml-5 inline-flex justify-center bg-gradient-to-r from-orange-400 to-pink-600 px-4 py-2 text-sm font-medium text-white shadow-sm hover:from-orange-300 hover:to-pink-500 focus:outline-none focus:ring-2 focus:ring-pink-300 focus:ring-offset-2 disabled:opacity-50" 
256258                onClick = { ( )  =>  setOpen ( true ) } 
257-                 aria-label = { data ?. published  ? "Save changes to document"  : "Publish document" } 
259+                 aria-label = { 
260+                   data ?. published 
261+                     ? "Save changes to document" 
262+                     : "Publish document" 
263+                 } 
258264              > 
259265                { data ?. published  ? "Save Changes"  : "Publish" } 
260266              </ button > 
Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ import { getPost } from "@/server/lib/posts";
1616import  {  getCamelCaseFromLower  }  from  "@/utils/utils" ; 
1717import  {  generateHTML  }  from  "@tiptap/html" ; 
1818import  {  TiptapExtensions  }  from  "@/components/editor/editor/extensions" ; 
19- import  DOMPurify  from  ' isomorphic-dompurify' ; 
20- import  type  {  JSONContent  }  from  ' @tiptap/core' ; 
19+ import  DOMPurify  from  " isomorphic-dompurify" ; 
20+ import  type  {  JSONContent  }  from  " @tiptap/core" ; 
2121
2222type  Props  =  {  params : {  slug : string  }  } ; 
2323
@@ -104,7 +104,6 @@ const ArticlePage = async ({ params }: Props) => {
104104    } )  as  unknown  as  string ; 
105105  } 
106106
107- 
108107  return  ( 
109108    < > 
110109      < ArticleMenu 
@@ -116,7 +115,7 @@ const ArticlePage = async ({ params }: Props) => {
116115      /> 
117116      < div  className = "mx-auto break-words px-2 pb-4 sm:px-4 md:max-w-3xl" > 
118117        < article  className = "prose mx-auto max-w-3xl dark:prose-invert lg:prose-lg" > 
119-           { ! isTiptapContent  &&  ( < h1 > { post . title } </ h1 > ) } 
118+           { ! isTiptapContent  &&  < h1 > { post . title } </ h1 > } 
120119
121120          { isTiptapContent  ? ( 
122121            < div 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments