refactor: use colors straightly without finding them with theme
This commit is contained in:
parent
db2f14aff7
commit
3f46b2ca84
|
@ -3,11 +3,10 @@ import { View } from 'react-native';
|
|||
|
||||
import { CustomIcon } from '../../../CustomIcon';
|
||||
import { useTheme } from '../../../../theme';
|
||||
import { themes } from '../../../../lib/constants';
|
||||
import styles from '../../styles';
|
||||
|
||||
const Translated = memo(({ isTranslated }: { isTranslated: boolean }) => {
|
||||
const { theme } = useTheme();
|
||||
const { colors } = useTheme();
|
||||
|
||||
if (!isTranslated) {
|
||||
return null;
|
||||
|
@ -15,7 +14,7 @@ const Translated = memo(({ isTranslated }: { isTranslated: boolean }) => {
|
|||
|
||||
return (
|
||||
<View style={styles.rightIcons}>
|
||||
<CustomIcon name='language' size={16} color={themes[theme].auxiliaryText} />
|
||||
<CustomIcon name='language' size={16} color={colors.auxiliaryText} />
|
||||
</View>
|
||||
);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue