• Resolved potatomaestro

    (@potatomaestro)


    Hi there,

    I’m trying to modify the existing repo to include custom features. However, I’m having quite a bit of trouble understanding how the flow works exactly.

    An example of one feature I’m trying to include is a before/after slider. I know I’m able to modify the ACTIONS object within the constants (src/app/quickActions/constants.js). I’ve also made sure to modify the “noElementSelectedActions” constant in the useQuickActions (src/app/quickActions/useQuickAction.js) hook to work with the existing sets of elements, but I’m not sure how exactly to add a custom feature, such as the before/after slider or displaying a custom Modal component.

    Could you please describe the flow I should follow when adding a new component/feature/element?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Pascal Birchler

    (@swissspidy)

    Heya, since you are doing some custom changes to our open source code I’d suggest opening an issue on GitHub instead and share your code there. We can then take a better look, but no guarantees as we don’t really offer that kind of support. Note that anything in src/app/quickActions is just for handling the quick actions menu next to the canvas.

    Also note that any custom code modifications require a good knowledge of React & JavaScript development. We can’t really offer support on how to create such custom components.

    Thread Starter potatomaestro

    (@potatomaestro)

    Hey Pascal!

    Thanks for the response. I’ll be sure to create an issue and share my existing code.

    Not to worry about creating the components themselves. I’ve got that covered. I just have trouble understanding exactly how everything in webstories ties together, since my normal approach to adding components isn’t working as expected. But I’ll be sure to include my code.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘How to add custom components’ is closed to new replies.