Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create style function to return svg fill and colors #62

Closed
iurynogueira opened this issue Feb 10, 2023 · 0 comments · Fixed by #71
Closed

Create style function to return svg fill and colors #62

iurynogueira opened this issue Feb 10, 2023 · 0 comments · Fixed by #71
Assignees

Comments

@iurynogueira
Copy link
Member

          it is possible to reduce code repetition with function
const getCustomStyle = (border:string, backgroundColor: string, color:string, outline: string, fill: string) => ({
    border,
    backgroundColor,
    color,
    outline,
    svg: {
        fill,
    },
})

Originally posted by @Deeved in #44 (comment)

@iurynogueira iurynogueira self-assigned this Feb 14, 2023
@iurynogueira iurynogueira linked a pull request Feb 14, 2023 that will close this issue
iurynogueira added a commit that referenced this issue Feb 15, 2023
iurynogueira added a commit that referenced this issue Feb 15, 2023
Co-authored-by: Jairo Chaves <jairochaves2@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant