Adds Button themed HeroImagecomponent derived from base components.
Learnings
I got delayed for a bit due to the test erroring (not failing). The error was something along the lines of Jest encountered an unexpected token. This was due to the module being imported into button-theme/.../HeroImage.tsx as esm rather than directly. ✔️ import { applyTheme, StyleConfig } from '@button-inc/component-library/HeroImage'; vs ❌ import { applyTheme, StyleConfig } from '@button-inc/component-library/esm/HeroImage'; Moral of the story: don't be like me, double check your auto-imports!
Fixes #497
Proposed Changes
HeroImage
component derived from base components.Learnings
I got delayed for a bit due to the test erroring (not failing). The error was something along the lines of
Jest encountered an unexpected token
. This was due to the module being imported intobutton-theme/.../HeroImage.tsx
asesm
rather than directly. ✔️import { applyTheme, StyleConfig } from '@button-inc/component-library/HeroImage';
vs ❌import { applyTheme, StyleConfig } from '@button-inc/component-library/esm/HeroImage';
Moral of the story: don't be like me, double check your auto-imports!