Skip to content

Commit

Permalink
fix(wallet-mobile): Fix dark variant of notifications (#3795)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljscript authored Jan 22, 2025
1 parent e1538a5 commit 7adff71
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const RewardsUpdatedIcon = () => {
}

const useStyles = () => {
const {atoms, color} = useTheme()
const {atoms, color, isLight} = useTheme()
const styles = StyleSheet.create({
container: {
flex: 1,
Expand All @@ -108,7 +108,9 @@ const useStyles = () => {
...atoms.p_lg,
...atoms.gap_lg,
...atoms.flex_row,
backgroundColor: color.bg_color_max,
...atoms.border,
backgroundColor: isLight ? color.bg_color_max : color.gray_100,
borderColor: color.gray_50,
},
icon: {
width: 40,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const SwipeOutWrapper = ({children, onSwipeOut, onExpired}: Props) => {
}, [fadeIn, fadeOut])

React.useLayoutEffect(() => {
fadeIn()
requestAnimationFrame(() => fadeIn())
}, [fadeIn])

return (
Expand Down

0 comments on commit 7adff71

Please sign in to comment.