diff --git a/src/components/NewUI/EventCreator.tsx b/src/components/NewUI/EventCreator.tsx
index 18e3269..6a2f6af 100644
--- a/src/components/NewUI/EventCreator.tsx
+++ b/src/components/NewUI/EventCreator.tsx
@@ -49,13 +49,13 @@ export default function EventCreator({ group }: { group: IGroup }) {
{group.name}
Name
-
+
Start time
-
+
End time
-
+
Location
) : (
-
+
Created {name}.
)}
diff --git a/src/components/NewUI/UIDatetimeInput.tsx b/src/components/NewUI/UIDatetimeInput.tsx
index e7197c6..4303033 100644
--- a/src/components/NewUI/UIDatetimeInput.tsx
+++ b/src/components/NewUI/UIDatetimeInput.tsx
@@ -9,13 +9,16 @@ const baseStyle = {
export default function UIDatetimeInput({
onChangedDate,
+ disabled = false,
}: {
onChangedDate: (date: Date | null) => void;
+ disabled?: boolean;
}) {
return (
{
const number = e.target.valueAsNumber;
if (!isNaN(number)) {
diff --git a/src/components/NewUI/UIPlacesAutocomplete.tsx b/src/components/NewUI/UIPlacesAutocomplete.tsx
index 55d875a..ae936af 100644
--- a/src/components/NewUI/UIPlacesAutocomplete.tsx
+++ b/src/components/NewUI/UIPlacesAutocomplete.tsx
@@ -22,6 +22,7 @@ function SuggestionsList({
borderBottomRightRadius: '0.5em',
backgroundColor: 'white',
maxWidth: '100%',
+ textAlign: 'left',
}}
>
{suggestions.map((suggestion) => (
@@ -42,9 +43,11 @@ function SuggestionsList({
export default function UIPlacesAutocomplete({
onSelected,
placeholder = 'Enter a location',
+ disabled = false,
}: {
onSelected?: (address: string, placeID: string) => void;
placeholder?: string;
+ disabled?: boolean;
}) {
const [location, setLocation] = useState('');
const suggestionsRef = useRef([]);
@@ -89,6 +92,7 @@ export default function UIPlacesAutocomplete({
},
placeholder,
})}
+ disabled={disabled}
/>
{suggestionsRef.current.length > 0 && (
void;
}) {
return (
onChangeText(e.target.value)}
/>
);