From 202d34d785b326132c843348624f733338210ea9 Mon Sep 17 00:00:00 2001 From: Brandon Presley Date: Wed, 2 Nov 2022 12:26:46 +1300 Subject: [PATCH] Remove hard coded colors in MassiveFab --- MassiveFab.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/MassiveFab.tsx b/MassiveFab.tsx index 7f45f1d..ec3a5d6 100644 --- a/MassiveFab.tsx +++ b/MassiveFab.tsx @@ -1,5 +1,6 @@ import {ComponentProps} from 'react' import {FAB, useTheme} from 'react-native-paper' +import {CombinedDarkTheme, CombinedDefaultTheme} from './App' import {lightColors} from './colors' export default function MassiveFab(props: Partial>) { @@ -8,8 +9,8 @@ export default function MassiveFab(props: Partial>) { const fabColor = lightColors .map(lightColor => lightColor.hex) .includes(colors.primary) - ? 'black' - : undefined + ? CombinedDarkTheme.colors.background + : CombinedDefaultTheme.colors.background return (