This commit is contained in:
Asier Isayas
2025-03-06 15:21:58 -05:00
parent db1600d81b
commit 8624bf0423
2 changed files with 2 additions and 4 deletions

View File

@@ -13,11 +13,10 @@ export interface AddMVPartitionKeyComponentProps {
subPartitionKeys: string[]; subPartitionKeys: string[];
setSubPartitionKeys: React.Dispatch<React.SetStateAction<string[]>>; setSubPartitionKeys: React.Dispatch<React.SetStateAction<string[]>>;
useHashV1: boolean; useHashV1: boolean;
setUseHashV1: React.Dispatch<React.SetStateAction<boolean>>;
} }
export const AddMVPartitionKeyComponent = (props: AddMVPartitionKeyComponentProps): JSX.Element => { export const AddMVPartitionKeyComponent = (props: AddMVPartitionKeyComponentProps): JSX.Element => {
const { partitionKey, setPartitionKey, subPartitionKeys, setSubPartitionKeys, useHashV1, setUseHashV1 } = props; const { partitionKey, setPartitionKey, subPartitionKeys, setSubPartitionKeys, useHashV1 } = props;
const partitionKeyValueOnChange = (value: string): void => { const partitionKeyValueOnChange = (value: string): void => {
if (!partitionKey && !value.startsWith("/")) { if (!partitionKey && !value.startsWith("/")) {

View File

@@ -381,11 +381,10 @@ export const AddMaterializedViewPanel = (props: AddMaterializedViewPanelProps):
onChange={(event: React.ChangeEvent<HTMLInputElement>) => setDefinition(event.target.value)} onChange={(event: React.ChangeEvent<HTMLInputElement>) => setDefinition(event.target.value)}
/> />
<AddMVPartitionKeyComponent <AddMVPartitionKeyComponent
{...{ partitionKey, setPartitionKey, subPartitionKeys, setSubPartitionKeys, useHashV1, setUseHashV1 }} {...{ partitionKey, setPartitionKey, subPartitionKeys, setSubPartitionKeys, useHashV1 }}
/> />
<AddMVThroughputComponent <AddMVThroughputComponent
{...{ {...{
selectedSourceContainer,
enableDedicatedThroughput, enableDedicatedThroughput,
setEnabledDedicatedThroughput, setEnabledDedicatedThroughput,
isSelectedSourceContainerSharedThroughput, isSelectedSourceContainerSharedThroughput,