From da9cf5b00bfd2b06f185b65dc8647d3114d7e15b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Perttu=20L=C3=A4hteenlahti?= Date: Tue, 3 Sep 2024 00:46:17 +0200 Subject: [PATCH] chore: improving --- src/components/NoPreview.tsx | 5 +++-- src/components/layout/ScrollView.tsx | 11 +++++++++-- src/components/row/ButtonRow.tsx | 1 - src/views/SiteView.tsx | 4 ++-- 4 files changed, 14 insertions(+), 7 deletions(-) diff --git a/src/components/NoPreview.tsx b/src/components/NoPreview.tsx index 646ee24..21b1d9a 100644 --- a/src/components/NoPreview.tsx +++ b/src/components/NoPreview.tsx @@ -1,12 +1,13 @@ import { View, ViewProps } from 'react-native' import FontAwesome5 from 'react-native-vector-icons/FontAwesome5' +import colors from 'tailwindcss/colors' export const NoPreview = ({ className, ...rest }: ViewProps) => { return ( - + ) } diff --git a/src/components/layout/ScrollView.tsx b/src/components/layout/ScrollView.tsx index b237bfa..43506ef 100644 --- a/src/components/layout/ScrollView.tsx +++ b/src/components/layout/ScrollView.tsx @@ -119,7 +119,7 @@ export const AnimatedScrollView = ({ {children} {goBack ? ( - + + Back ) : null} diff --git a/src/components/row/ButtonRow.tsx b/src/components/row/ButtonRow.tsx index 8264ca7..0274351 100644 --- a/src/components/row/ButtonRow.tsx +++ b/src/components/row/ButtonRow.tsx @@ -26,7 +26,6 @@ export const ButtonRow = ({ className={` font-medium text-base - flex-1 ${type === 'action' ? 'text-blue-500' : 'text-red-500'} `}> {title} diff --git a/src/views/SiteView.tsx b/src/views/SiteView.tsx index f7dde95..1a33700 100644 --- a/src/views/SiteView.tsx +++ b/src/views/SiteView.tsx @@ -38,7 +38,7 @@ export const Site = ({ Preview - + {site.data?.screenshot_url ? ( ) : ( - + )}