charkour / react-reactions

😲 Create custom reaction pickers and counters or use your favorites!
MIT License
74 stars 16 forks source link

Font issue fixed, custom style for slack counter #147

Open princesust opened 2 years ago

princesust commented 2 years ago

Now we don't need to put slack fonts in public/fonts directory We can pass slack counter style properties like below

const styles = {
  addStyle: {
    paddingLeft: '4px',
    opacity: '1',
  },
};

<SlackCounter styles={styles} />

This styles will be merged with default addStyle

charkour commented 2 years ago

Hey @princesust,

Thanks for the PR, I can take a look at it in a couple of hours after I'm done with my work day.

Thank you for taking the time to open the PR.

princesust commented 2 years ago

Hi @charkour, I test it directly from local and it was working perfectly. Later when I put build command it showing some errors. May be it's tsdx or typescript related issue. I am not familiar with tsdx and typescript. Maybe you can fix it. I removed fonts from example folder and run it and it's working.