format codebase with prettier
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import { View } from "react-native"
|
||||
import currentTheme from "../Themes"
|
||||
import { View } from "react-native";
|
||||
import currentTheme from "../Themes";
|
||||
import { ReactNode } from "react";
|
||||
|
||||
type BaseBackgroundProps = {
|
||||
children?: ReactNode;
|
||||
className?: string;
|
||||
}
|
||||
};
|
||||
|
||||
const BaseBackground = (props: BaseBackgroundProps) => {
|
||||
return (
|
||||
@@ -17,7 +17,7 @@ const BaseBackground = (props: BaseBackgroundProps) => {
|
||||
>
|
||||
{props.children}
|
||||
</View>
|
||||
)
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
export default BaseBackground;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { View, Text, Pressable } from 'react-native';
|
||||
import { CalendarEvent } from '@caldav/shared';
|
||||
import { View, Text, Pressable } from "react-native";
|
||||
import { CalendarEvent } from "@caldav/shared";
|
||||
|
||||
type EventCardProps = {
|
||||
event: CalendarEvent;
|
||||
@@ -10,7 +10,7 @@ const EventCard = ({ event: _event, onPress: _onPress }: EventCardProps) => {
|
||||
// TODO: Display event title, time, and description preview
|
||||
// TODO: Handle onPress to navigate to EventDetailScreen
|
||||
// TODO: Style based on event type or time of day
|
||||
throw new Error('Not implemented');
|
||||
throw new Error("Not implemented");
|
||||
|
||||
return (
|
||||
<Pressable>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { View, Text, Modal, Pressable } from 'react-native';
|
||||
import { CreateEventDTO } from '@caldav/shared';
|
||||
import { View, Text, Modal, Pressable } from "react-native";
|
||||
import { CreateEventDTO } from "@caldav/shared";
|
||||
|
||||
type EventConfirmDialogProps = {
|
||||
visible: boolean;
|
||||
@@ -20,7 +20,7 @@ const EventConfirmDialog = ({
|
||||
// TODO: Confirm button calls onConfirm and closes dialog
|
||||
// TODO: Reject button calls onReject and closes dialog
|
||||
// TODO: Close button or backdrop tap calls onClose
|
||||
throw new Error('Not implemented');
|
||||
throw new Error("Not implemented");
|
||||
|
||||
return (
|
||||
<Modal visible={false} transparent animationType="fade">
|
||||
|
||||
@@ -41,7 +41,10 @@ export const ProposedEventCard = ({
|
||||
{formatDateTime(event?.startTime)}
|
||||
</Text>
|
||||
{event?.description && (
|
||||
<Text style={{ color: currentTheme.textSecondary }} className="text-sm mt-1">
|
||||
<Text
|
||||
style={{ color: currentTheme.textSecondary }}
|
||||
className="text-sm mt-1"
|
||||
>
|
||||
{event.description}
|
||||
</Text>
|
||||
)}
|
||||
@@ -65,7 +68,10 @@ export const ProposedEventCard = ({
|
||||
borderColor: currentTheme.confirmButton,
|
||||
}}
|
||||
>
|
||||
<Text style={{ color: currentTheme.buttonText }} className="font-medium">
|
||||
<Text
|
||||
style={{ color: currentTheme.buttonText }}
|
||||
className="font-medium"
|
||||
>
|
||||
Annehmen
|
||||
</Text>
|
||||
</Pressable>
|
||||
@@ -81,7 +87,10 @@ export const ProposedEventCard = ({
|
||||
borderColor: currentTheme.rejectButton,
|
||||
}}
|
||||
>
|
||||
<Text style={{ color: currentTheme.buttonText }} className="font-medium">
|
||||
<Text
|
||||
style={{ color: currentTheme.buttonText }}
|
||||
className="font-medium"
|
||||
>
|
||||
Ablehnen
|
||||
</Text>
|
||||
</Pressable>
|
||||
|
||||
Reference in New Issue
Block a user