Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

Commit

Permalink
Merge pull request #107 from gluestack/release/@dank-style/[email protected]
Browse files Browse the repository at this point in the history
  • Loading branch information
ankit-tailor authored Apr 4, 2023
2 parents 2104488 + 92cbbba commit 5c3cfd6
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion example/expo-app/gluestack-ui.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@ export const config = {
},
fonts: {
heading: 'inter',
body: 'sans-serif',
body: undefined,
mono: 'monospace',
},
fontSizes: {
Expand Down
2 changes: 1 addition & 1 deletion example/storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
},
"devDependencies": {
"@babel/core": "^7.19.3",
"@dank-style/react": "0.3.9",
"@dank-style/react": "0.3.10",
"@storybook/addon-actions": "^6.5.14",
"@storybook/addon-controls": "^6.5.14",
"@storybook/addon-docs": "^6.5.15",
Expand Down
6 changes: 6 additions & 0 deletions packages/react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @dank-style/react

## 0.3.10

### Patch Changes

- Fixed undefined token resolution for fontFamily

## 0.3.9

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dank-style/react",
"version": "0.3.9",
"version": "0.3.10",
"main": "lib/commonjs/index",
"types": "lib/typescript/index.d.ts",
"module": "lib/module/index",
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export function resolveStringToken(

let finalResult = result;

if (finalResult === '') {
if (finalResult.length !== 0 && finalResult[0] === '') {
return undefined;
} else {
finalResult = result.join(' ');
Expand Down

0 comments on commit 5c3cfd6

Please sign in to comment.