Skip to content

Commit

Permalink
fix(font-change): change on change fontFamily
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamTraoreee committed Sep 9, 2022
1 parent 55dae09 commit f783f9d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
NX_API_ENDPOINT=http://localhost:3333
NX_GOOGLE_FONTS_API_KEY=
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function TabsMessage(props: TabsGeneralProps) {
<FontSelect
label="Font (with Google Fonts)"
className="mb-3"
onChange={(value) => onChange(value?.value)}
onChange={(fontName, variants) => onChange(fontName)}
defaultValue={{ value: value, label: value }}
/>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function TabsName(props: TabsGeneralProps) {
<FontSelect
label="Font (with Google Fonts)"
className="mb-3"
onChange={(value) => onChange(value?.value)}
onChange={(fontName, variants) => onChange(fontName)}
defaultValue={{ label: value, value: value }}
/>
)}
Expand Down

0 comments on commit f783f9d

Please sign in to comment.