Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
sabrina-bongiovanni committed Dec 17, 2024
1 parent d152512 commit 4a184b8
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ export default function Edit(props: AccordionEditProps) {
</div>
</Container>
</section>
{/* @ts-expect-error TODO fix */}
<SidebarPortal selected={selected}>
{schema && (
<BlockDataForm
Expand Down
26 changes: 13 additions & 13 deletions packages/volto-blocks/src/config/blocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ import iconsAndTextSVG from '@redturtle/volto-blocks/icons/icons_and_text.svg';

declare module '@plone/types' {
interface BlocksConfigData {
accordion: AccordionConfig;
// accordion: AccordionConfig;
pageintro: PageIntroConfig;
calltoaction: CallToActionConfig;
cardwithimages: CardWithImagesConfig;
Expand All @@ -62,7 +62,7 @@ declare module '@plone/types' {

type RtBlocksConfig = Pick<
BlocksConfigData,
| 'accordion'
// | 'accordion'
| 'pageintro'
| 'calltoaction'
| 'cardwithimages'
Expand All @@ -82,17 +82,17 @@ const defaultBlocksConfig = {
} as const;

export const blocks: RtBlocksConfig = {
accordion: {
...defaultBlocksConfig,
id: 'accordion',
title: 'Accordion',
icon: accordionSVG,
group: 'common',
view: AccordionView,
edit: AccordionEdit,
blockHasOwnFocusManagement: true,
blockSchema: AccordionSchema,
},
// accordion: {
// ...defaultBlocksConfig,
// id: 'accordion',
// title: 'Accordion',
// icon: accordionSVG,
// group: 'common',
// view: AccordionView,
// edit: AccordionEdit,
// blockHasOwnFocusManagement: true,
// blockSchema: AccordionSchema,
// },
pageintro: {
...defaultBlocksConfig,
id: 'pageintro',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ const Carousel = ({
spaceBetween,
loop,
centeredSlides: slidesPerView > 1 ? false : true,
lazy: true,
lazy: 'true',
keyboard: {
enabled: true,
onlyInViewport: true,
Expand Down
4 changes: 2 additions & 2 deletions packages/volto-carousel/src/components/Carousel/PauseIcon.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ const PauseIcon = (
<g
id="Page-1"
stroke="none"
stroke-width="1"
strokeWidth="1"
fill="none"
fill-rule="evenodd"
fillRule="evenodd"
>
<g
id="Icon-Set-Filled"
Expand Down
8 changes: 1 addition & 7 deletions packages/volto-carousel/src/components/Carousel/PlayIcon.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,7 @@ const PlayIcon = (
xmlns="http://www.w3.org/2000/svg"
>
<defs></defs>
<g
id="Page-1"
stroke="none"
stroke-width="1"
fill="none"
fill-rule="evenodd"
>
<g id="Page-1" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
<g
id="Icon-Set-Filled"
transform="translate(-419.000000, -571.000000)"
Expand Down
1 change: 0 additions & 1 deletion packages/volto-carousel/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ const messages = defineMessages({
});

const applyConfig = (config) => {
console.log(config);
config.settings.loadables = {
...(config.settings.loadables ?? {}),
swiper: loadable.lib(() => import('swiper/react')),
Expand Down

0 comments on commit 4a184b8

Please sign in to comment.