Skip to content

Commit

Permalink
feat(tabs-message): change font-select onChange
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoineHbnt authored and WilliamTraoreee committed Sep 10, 2022
1 parent d979507 commit fc58836
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ function TabsMessage(props: TabsGeneralProps) {
<FontSelect
label="Font (with Google Fonts)"
className="mb-3"
onChange={(value) => onChange(value)}
onChange={(fontName, variants) => {
setFontVariants(variants);
onChange(fontName);
}}
defaultValue={{ value: value, label: value }}
/>
)}
Expand Down

0 comments on commit fc58836

Please sign in to comment.