Front: Pretty and Lint (#225)

This commit is contained in:
Arthur Jamet
2023-06-17 07:01:23 +01:00
committed by GitHub
parent 399c7d0d9e
commit c5d465df97
94 changed files with 3627 additions and 3089 deletions
+8 -6
View File
@@ -8,7 +8,9 @@ type SearchHistoryCardProps = {
timestamp?: string;
};
const SearchHistoryCard = (props: SearchHistoryCardProps & { onPress: (query: string) => void }) => {
const SearchHistoryCard = (
props: SearchHistoryCardProps & { onPress: (query: string) => void }
) => {
const { query, type, timestamp, onPress } = props;
const handlePress = () => {
@@ -18,18 +20,18 @@ const SearchHistoryCard = (props: SearchHistoryCardProps & { onPress: (query: st
};
return (
<Card shadow={2} onPress={handlePress} >
<Card shadow={2} onPress={handlePress}>
<VStack m={1.5} space={3}>
<Text fontSize="lg" fontWeight="bold">
{query ?? "query"}
{query ?? 'query'}
</Text>
<Text fontSize="lg" fontWeight="semibold">
{type ?? "type"}
{type ?? 'type'}
</Text>
<Text color="gray.500">{timestamp ?? "timestamp"}</Text>
<Text color="gray.500">{timestamp ?? 'timestamp'}</Text>
</VStack>
</Card>
);
};
export default SearchHistoryCard;
export default SearchHistoryCard;