Skip to content

Commit

Permalink
Merge pull request #299 from natura-cosmeticos/DSY-3815-v2
Browse files Browse the repository at this point in the history
Dsy 3815 v2
  • Loading branch information
vagnerbarbosant authored Nov 30, 2023
2 parents 52764ab + 1c6e765 commit 0ee26ab
Show file tree
Hide file tree
Showing 19 changed files with 1,545 additions and 1,468 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@
"generate": "yarn plop --plopfile ./generators/plopfile.js"
},
"dependencies": {
"@naturacosmeticos/natds-icons": "^1.11.3",
"@naturacosmeticos/natds-themes": "^0.58.5",
"@naturacosmeticos/natds-icons": "^1.18.8",
"@naturacosmeticos/natds-themes": "^0.68.6",
"react-native-gesture-handler": "^1.10.3",
"react-native-svg": "^12.1.1"
},
Expand Down
8 changes: 8 additions & 0 deletions src/common/themeSelectors/assets/assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,30 @@ const getBrandAssetsByModel = (
) => getBrandAssets(theme)[type][model]

export const getNeutralLogoA = (theme: Theme) => ({
es: getBrandAssetsByModel(theme, 'neutral', 'a').es,
file: getBrandAssetsByModel(theme, 'neutral', 'a').file,
height: getBrandAssetsByModel(theme, 'neutral', 'a').height,
pt: getBrandAssetsByModel(theme, 'neutral', 'a').pt,
width: getBrandAssetsByModel(theme, 'neutral', 'a').width
})
export const getNeutralLogoB = (theme: Theme) => ({
es: getBrandAssetsByModel(theme, 'neutral', 'b').es,
file: getBrandAssetsByModel(theme, 'neutral', 'b').file,
height: getBrandAssetsByModel(theme, 'neutral', 'b').height,
pt: getBrandAssetsByModel(theme, 'neutral', 'b').pt,
width: getBrandAssetsByModel(theme, 'neutral', 'b').width
})
export const getCustomLogoA = (theme: Theme) => ({
es: getBrandAssetsByModel(theme, 'custom', 'a').es,
file: getBrandAssetsByModel(theme, 'custom', 'a').file,
height: getBrandAssetsByModel(theme, 'custom', 'a').height,
pt: getBrandAssetsByModel(theme, 'custom', 'a').pt,
width: getBrandAssetsByModel(theme, 'custom', 'a').width
})
export const getCustomLogoB = (theme: Theme) => ({
es: getBrandAssetsByModel(theme, 'custom', 'b').es,
file: getBrandAssetsByModel(theme, 'custom', 'b').file,
height: getBrandAssetsByModel(theme, 'custom', 'b').height,
pt: getBrandAssetsByModel(theme, 'custom', 'b').pt,
width: getBrandAssetsByModel(theme, 'custom', 'b').width
})
Loading

0 comments on commit 0ee26ab

Please sign in to comment.