a tool for shared writing and social publishing

some small tweaks

+10 -6
+1 -1
app/[leaflet_id]/actions/PublishButton.tsx
··· 176 176 <hr className="border-border-light mt-3 mb-2" /> 177 177 178 178 <div className="flex gap-2 items-center place-self-end"> 179 - {selectedPub !== "looseleaf" && ( 179 + {selectedPub !== "looseleaf" && selectedPub && ( 180 180 <SaveAsDraftButton 181 181 selectedPub={selectedPub} 182 182 leafletId={permission_token.id}
+8 -4
app/[leaflet_id]/publish/PublishPost.tsx
··· 177 177 <div className="flex flex-col p-2"> 178 178 <div className="font-bold">{props.title}</div> 179 179 <div className="text-tertiary">{props.description}</div> 180 - <hr className="border-border-light mt-2 mb-1" /> 181 - <p className="text-xs text-tertiary"> 182 - {props.record?.base_path} 183 - </p> 180 + {props.record && ( 181 + <> 182 + <hr className="border-border-light mt-2 mb-1" /> 183 + <p className="text-xs text-tertiary"> 184 + {props.record?.base_path} 185 + </p> 186 + </> 187 + )} 184 188 </div> 185 189 </div> 186 190 <div className="text-xs text-secondary italic place-self-end pt-2">
+1 -1
components/Pages/Page.tsx
··· 60 60 /> 61 61 } 62 62 > 63 - {props.first && ( 63 + {props.first && pageType === "doc" && ( 64 64 <> 65 65 <PublicationMetadata /> 66 66 </>