Skip to content

Commit

Permalink
fix: fallback screen settings button icon rendering with the right color
Browse files Browse the repository at this point in the history
  • Loading branch information
Mounir HAMZAOUI committed Sep 5, 2024
1 parent cc291f5 commit 718eee9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/tasty-pandas-behave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"live-mobile": patch
---

Assign the right color to settings icon in Fallback camera permission screen
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ type Props = {
hasNoBackground?: boolean;
};

const IconSettings = () => <Icon name="settings" size={16} color="neutral.c100" />;

const FallbackCameraBody: React.FC<Props> = ({

Check failure on line 19 in apps/ledger-live-mobile/src/components/RequiresCameraPermissions/Fallback.tsx

View check run for this annotation

live-github-bot / @Mobile • Test App

prettier/prettier

Delete `⏎`
title,
Expand All @@ -27,6 +26,9 @@ const FallbackCameraBody: React.FC<Props> = ({
}: Props) => {
const { colors } = useTheme();

// benefit from component scope colors variable for IconSettings
const IconSettings = () => <Icon name="settings" size={16} color={colors.constant.white} />

Check failure on line 30 in apps/ledger-live-mobile/src/components/RequiresCameraPermissions/Fallback.tsx

View check run for this annotation

live-github-bot / @Mobile • Test App

prettier/prettier

Insert `;`

return (
<Flex flex={1} bg={hasNoBackground ? "transparent" : "background.main"} px={6}>
<Flex flex={1} alignItems="center" justifyContent="center">
Expand Down

0 comments on commit 718eee9

Please sign in to comment.