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 #540 from gluestack/fix/config-warning
Browse files Browse the repository at this point in the history
fix: config warning
  • Loading branch information
ankit-tailor authored Nov 22, 2023
2 parents bfe8854 + 06955d5 commit bbb35dd
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/react/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -360,11 +360,12 @@ export const platformSpecificSpaceUnits = (theme: Config, platform: string) => {
if (newTheme.tokens) {
//@ts-ignore
newTheme.tokens[key] = newScale;
} else {
console.warn(
'No tokens found in config! Please pass config in Provider to resolve styles!'
);
}
// else {
// console.warn(
// 'No tokens found in config! Please pass config in Provider to resolve styles!'
// );
// }
});
return newTheme;
};
Expand Down

0 comments on commit bbb35dd

Please sign in to comment.