Skip to content

Connect the <PreviewFrame /> Component #1590

Closed
@ghalestrilo

Description

@ghalestrilo

Nature of issue?

  • Refactor / Code quality

Details

The <PreviewFrame /> component needs a lot of props, some of which are very specific, which are passed by the <IDEView />. Since the component is also used in the <MobileIDEView /> (and futurely in other components, maybe), it's a good idea to make it into a React Container. This has been done to the <Editor /> component, and it helps dry up the code for the Views.
There are two ways to go about this:

  1. connect it using mapStateToProps and mapDispatchToProps
  2. Use the useSelector and useDispatch react-redux hooks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions