From 4c02322e5c7fd7805e63461f7787f8ea634978aa Mon Sep 17 00:00:00 2001 From: Carissa Knipe Date: Fri, 5 Jul 2024 13:07:32 -0700 Subject: [PATCH] fix: Remove 'Create Site Here' button on overlay sheet, and add a bit of bottom margin in its place --- .../components/soilInfo/ScoreInfoContainer.tsx | 6 +++++- .../components/soilInfo/TempScoreInfoContent.tsx | 2 -- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/dev-client/src/screens/LocationScreens/components/soilInfo/ScoreInfoContainer.tsx b/dev-client/src/screens/LocationScreens/components/soilInfo/ScoreInfoContainer.tsx index d92ea5e31..f0dd493cb 100644 --- a/dev-client/src/screens/LocationScreens/components/soilInfo/ScoreInfoContainer.tsx +++ b/dev-client/src/screens/LocationScreens/components/soilInfo/ScoreInfoContainer.tsx @@ -20,5 +20,9 @@ import {PropsWithChildren} from 'react'; import {Column} from 'terraso-mobile-client/components/NativeBaseAdapters'; export function ScoreInfoContainer({children}: PropsWithChildren) { - return {children}; + return ( + + {children} + + ); } diff --git a/dev-client/src/screens/LocationScreens/components/soilInfo/TempScoreInfoContent.tsx b/dev-client/src/screens/LocationScreens/components/soilInfo/TempScoreInfoContent.tsx index c241347fe..d86285f54 100644 --- a/dev-client/src/screens/LocationScreens/components/soilInfo/TempScoreInfoContent.tsx +++ b/dev-client/src/screens/LocationScreens/components/soilInfo/TempScoreInfoContent.tsx @@ -20,7 +20,6 @@ import {Divider} from 'react-native-paper'; import {LocationBasedSoilMatch} from 'terraso-client-shared/graphqlSchema/graphql'; import {Coords} from 'terraso-client-shared/types'; -import {CreateSiteButton} from 'terraso-mobile-client/screens/LocationScreens/components/CreateSiteButton'; import {LocationScoreDisplay} from 'terraso-mobile-client/screens/LocationScreens/components/soilInfo/LocationScoreDisplay'; import {PropertiesDisplay} from 'terraso-mobile-client/screens/LocationScreens/components/soilInfo/PropertiesDisplay'; import {ScoreInfoContainer} from 'terraso-mobile-client/screens/LocationScreens/components/soilInfo/ScoreInfoContainer'; @@ -50,7 +49,6 @@ export function TempScoreInfoContent({ /> - ); }