Skip to content

CopyBlock prop 'theme' incompatible with CodeBlock prop 'theme' #161

@fnune

Description

@fnune

image

I'd have expected the types to be compatible, but they don't overlap sufficiently.

It seems like CodeBlock's theme prop is styled-component's DefaultTheme interface, whereas CopyBlock's is this library's own Theme interface.

Should they be the same? Otherwise how can I safely pass e.g. the monoBlue theme to CodeBlock?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions