edited styling of error message

This commit is contained in:
jfrye122
2023-05-22 08:11:29 -04:00
parent 4ebe9a0e47
commit bfe749fc54
2 changed files with 6 additions and 5 deletions

View File

@@ -14,7 +14,7 @@ const localStyles = StyleSheet.create({
alert: {
color: "red",
textAlign: "center",
margin: 15,
padding: 15,
margin: 8,
padding: 8,
},
});

View File

@@ -172,12 +172,13 @@ export function ScreenTimeTicketBrowser({
currentRatesNCostCenters={currentRatesNCostCenters}
onValueSelected={setCurrentSCC}
/>
<Button mode="outlined" loading={loading} onPress={handleFinish}>
<Text>Clock In</Text>
</Button>
{error && error?.message ? (
<ErrorDisplay errorMessage={error.message} />
) : null}
<Button mode="outlined" loading={loading} onPress={handleFinish}>
<Text>Clock In</Text>
</Button>
</Card>
{/* <View style={{ flexGrow: 1, flex: 1 }}>
<EmployeeClockedInList