wip
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import React, { useState } from 'react';
|
||||
import type { HostedSessionConfig } from '../../../../packages/domain/entities/HostedSessionConfig';
|
||||
import type { HostedSessionConfig } from '../../../../packages/automation/domain/types/HostedSessionConfig';
|
||||
|
||||
interface SessionCreationFormProps {
|
||||
onSubmit: (config: HostedSessionConfig) => void;
|
||||
@@ -112,7 +112,14 @@ export function SessionCreationForm({ onSubmit, disabled }: SessionCreationFormP
|
||||
<label style={labelStyle}>Weather Type</label>
|
||||
<select
|
||||
value={config.weatherType}
|
||||
onChange={(e) => setConfig({ ...config, weatherType: e.target.value as any })}
|
||||
onChange={(e) =>
|
||||
setConfig(prev =>
|
||||
({
|
||||
...prev,
|
||||
weatherType: e.target.value as HostedSessionConfig['weatherType'],
|
||||
} as HostedSessionConfig)
|
||||
)
|
||||
}
|
||||
style={inputStyle}
|
||||
disabled={disabled}
|
||||
>
|
||||
@@ -125,7 +132,14 @@ export function SessionCreationForm({ onSubmit, disabled }: SessionCreationFormP
|
||||
<label style={labelStyle}>Time of Day</label>
|
||||
<select
|
||||
value={config.timeOfDay}
|
||||
onChange={(e) => setConfig({ ...config, timeOfDay: e.target.value as any })}
|
||||
onChange={(e) =>
|
||||
setConfig(prev =>
|
||||
({
|
||||
...prev,
|
||||
timeOfDay: e.target.value as HostedSessionConfig['timeOfDay'],
|
||||
} as HostedSessionConfig)
|
||||
)
|
||||
}
|
||||
style={inputStyle}
|
||||
disabled={disabled}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user