a tool for shared writing and social publishing

remove logs

-7
-1
components/ActionBar/Navigation.tsx
··· 192 <Popover 193 onOpenChange={async (open) => { 194 if (open) { 195 - console.log(open); 196 await markAsRead(); 197 mutate(); 198 }
··· 192 <Popover 193 onOpenChange={async (open) => { 194 if (open) { 195 await markAsRead(); 196 mutate(); 197 }
-2
components/Blocks/PublicationPollBlock.tsx
··· 31 32 const docRecord = publicationData.documents 33 .data as PubLeafletDocument.Record; 34 - console.log(docRecord); 35 36 // Search through all pages and blocks to find if this poll entity has been published 37 for (const page of docRecord.pages || []) { ··· 40 for (const blockWrapper of linearPage.blocks || []) { 41 if (blockWrapper.block?.$type === ids.PubLeafletBlocksPoll) { 42 const pollBlock = blockWrapper.block as PubLeafletBlocksPoll.Main; 43 - console.log(pollBlock); 44 // Check if this poll's rkey matches our entity ID 45 const rkey = pollBlock.pollRef.uri.split("/").pop(); 46 if (rkey === props.entityID) {
··· 31 32 const docRecord = publicationData.documents 33 .data as PubLeafletDocument.Record; 34 35 // Search through all pages and blocks to find if this poll entity has been published 36 for (const page of docRecord.pages || []) { ··· 39 for (const blockWrapper of linearPage.blocks || []) { 40 if (blockWrapper.block?.$type === ids.PubLeafletBlocksPoll) { 41 const pollBlock = blockWrapper.block as PubLeafletBlocksPoll.Main; 42 // Check if this poll's rkey matches our entity ID 43 const rkey = pollBlock.pollRef.uri.split("/").pop(); 44 if (rkey === props.entityID) {
-4
components/PageLayouts/DashboardLayout.tsx
··· 51 export const useDashboardStore = create<DashboardStore>((set, get) => ({ 52 dashboards: {}, 53 setDashboard: (id: string, partial: Partial<DashboardState>) => { 54 - console.log(partial); 55 set((state) => ({ 56 dashboards: { 57 ...state.dashboards, ··· 259 hasTemplates: boolean; 260 }) => { 261 let { display, sort } = useDashboardState(); 262 - console.log({ display, props }); 263 display = display || props.defaultDisplay; 264 let setState = useSetDashboardState(); 265 266 let { identity } = useIdentityData(); 267 - console.log(props); 268 269 return ( 270 <div className="dashboardControls w-full flex gap-4"> ··· 303 defaultDisplay: Exclude<DashboardState["display"], undefined>; 304 }) => { 305 let { display, sort } = useDashboardState(); 306 - console.log({ display, props }); 307 display = display || props.defaultDisplay; 308 let setState = useSetDashboardState(); 309 return (
··· 51 export const useDashboardStore = create<DashboardStore>((set, get) => ({ 52 dashboards: {}, 53 setDashboard: (id: string, partial: Partial<DashboardState>) => { 54 set((state) => ({ 55 dashboards: { 56 ...state.dashboards, ··· 258 hasTemplates: boolean; 259 }) => { 260 let { display, sort } = useDashboardState(); 261 display = display || props.defaultDisplay; 262 let setState = useSetDashboardState(); 263 264 let { identity } = useIdentityData(); 265 266 return ( 267 <div className="dashboardControls w-full flex gap-4"> ··· 300 defaultDisplay: Exclude<DashboardState["display"], undefined>; 301 }) => { 302 let { display, sort } = useDashboardState(); 303 display = display || props.defaultDisplay; 304 let setState = useSetDashboardState(); 305 return (