-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
43 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"ignoredFiles": [ | ||
"assets/images/empty-state_background-fade-dark.png", // Caused an issue with colour gradients, https://github.com/Expensify/App/issues/30499 | ||
"assets/images/empty-state_background-fade-light.png" | ||
"assets/images/themeDependent/empty-state_background-fade-dark.png", // Caused an issue with colour gradients, https://github.com/Expensify/App/issues/30499 | ||
"assets/images/themeDependent/empty-state_background-fade-light.png" | ||
], | ||
"aggressiveCompression": "false" | ||
} |
File renamed without changes
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import React from 'react'; | ||
import {Image} from 'react-native'; | ||
import useThemeIllustrations from '@styles/illustrations/useThemeIllustrations'; | ||
import useThemeStyles from '@styles/useThemeStyles'; | ||
import CONST from '@src/CONST'; | ||
import useLocalize from '@hooks/useLocalize'; | ||
|
||
function ExampleCheckImage() { | ||
const styles = useThemeStyles(); | ||
const illustrations = useThemeIllustrations(); | ||
const {preferredLocale} = useLocalize(); | ||
const isSpanish = (preferredLocale || CONST.LOCALES.DEFAULT) === CONST.LOCALES.ES; | ||
|
||
return ( | ||
<Image | ||
resizeMode="contain" | ||
style={[styles.exampleCheckImage, styles.mb5]} | ||
source={isSpanish ? illustrations.ExampleCheckES : illustrations.ExampleCheckEN} | ||
/> | ||
); | ||
} | ||
|
||
ExampleCheckImage.displayName = 'ExampleCheckImage'; | ||
export default ExampleCheckImage; | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
import EmptyStateBackgroundImage from '@assets/images/empty-state_background-fade-dark.png'; | ||
import EmptyStateBackgroundImage from '@assets/images/themeDependent/empty-state_background-fade-dark.png'; | ||
import ExampleCheckEN from '@assets/images/themeDependent/example-check-image-dark-en.png'; | ||
import ExampleCheckES from '@assets/images/themeDependent/example-check-image-dark-es.png'; | ||
import {Illustrations} from './types'; | ||
|
||
const illustrations = { | ||
EmptyStateBackgroundImage, | ||
ExampleCheckEN, | ||
ExampleCheckES, | ||
} satisfies Illustrations; | ||
|
||
export default illustrations; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
import EmptyStateBackgroundImage from '@assets/images/empty-state_background-fade-light.png'; | ||
import EmptyStateBackgroundImage from '@assets/images/themeDependent/empty-state_background-fade-light.png'; | ||
import ExampleCheckEN from '@assets/images/themeDependent/example-check-image-light-en.png'; | ||
import ExampleCheckES from '@assets/images/themeDependent/example-check-image-light-es.png'; | ||
|
||
import {Illustrations} from './types'; | ||
|
||
const illustrations = { | ||
EmptyStateBackgroundImage, | ||
ExampleCheckEN, | ||
ExampleCheckES, | ||
} satisfies Illustrations; | ||
|
||
export default illustrations; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters