Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
pnicolli committed Nov 28, 2024
1 parent ed85932 commit c178396
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 12 deletions.
1 change: 0 additions & 1 deletion apps/nextjs/src/app/[[...slug]]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ export default async function Main({
`contenttype-${content['@type'].replace(' ', '').toLowerCase()}`,
`section-${slug[slug.length - 1] || 'home'}`,
);
console.log('lang', content.language);

return (
<html lang={content.language?.token || 'en'}>
Expand Down
2 changes: 1 addition & 1 deletion packages/blocks/RenderBlocks/RenderBlocks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const RenderBlocks = (props: RenderBlocksProps) => {
const Block = blocksConfig[blockType]?.view || DefaultBlockView;

return Block ? (
<BlockWrapper {...props} block={block}>
<BlockWrapper {...props} key={block} block={block}>
{/* @ts-ignore It's ok to pass the blockData as is */}
<Block
key={block}
Expand Down
10 changes: 0 additions & 10 deletions packages/quanta/index.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
import { type ConfigType } from '@plone/registry';
import Logo from './components/Logo/Logo';

export default function install(config: ConfigType): ConfigType {
// config.unRegisterSlotComponent('logo', 'Logo', 0);
// console.log('slots', JSON.stringify(config.slots, null, 2));
config.registerSlotComponent({
name: 'Logo',
slot: 'logo',
component: Logo,
predicates: [() => true],
});

return config;
}

0 comments on commit c178396

Please sign in to comment.