mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-22 10:21:37 +00:00
format
This commit is contained in:
@@ -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("/")) {
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user