Propogate changes to the font size

Because this is update in the page now, this needs to be reflected
when changed in the component.
This commit is contained in:
Jackson Harper 2022-04-06 11:38:25 -07:00
parent ae1d028855
commit 8aed5fd517

View file

@ -41,6 +41,10 @@ export function ArticleContainer(props: ArticleContainerProps): JSX.Element {
await userPersonalizationMutation({ fontSize: newFontSize })
}
useEffect(() => {
updateFontSize(props.fontSize ?? 20)
}, [props.fontSize])
// Listen for font size and color mode change events sent from host apps (ios, macos...)
useEffect(() => {
const increaseFontSize = async () => {