Skip to content

Commit f325519

Browse files
committed
change misprint for ReJSON
1 parent 152c80c commit f325519

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

redisinsight/ui/src/pages/browser/components/add-key/constants/fields-config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export const AddListFormConfig: IAddListFormConfig = {
108108
name: 'count',
109109
isRequire: true,
110110
label: 'Count',
111-
placeholder: 'Enter Count'
111+
placeholder: 'Enter Count*'
112112
}
113113
}
114114

redisinsight/ui/src/pages/browser/modules/key-details/components/rejson-details/RejsonDetailsWrapper.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ const RejsonDetailsWrapper = (props: Props) => {
106106
data={data as IJSONData}
107107
length={length}
108108
parentPath={path}
109-
expadedRows={expandedRows}
109+
expandedRows={expandedRows}
110110
onJsonKeyExpandAndCollapse={handleJsonKeyExpandAndCollapse}
111111
isDownloaded={downloaded}
112112
/>

redisinsight/ui/src/pages/browser/modules/key-details/components/rejson-details/interfaces.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ export interface BaseProps {
4343
selectedKey: RedisResponseBuffer
4444
isDownloaded: boolean
4545
onJsonKeyExpandAndCollapse: (isExpanded: boolean, path: string) => void
46-
expadedRows: Set<string>
46+
expandedRows: Set<string>
4747
}
4848

4949
export interface DynamicTypesProps {
5050
data: IJSONData
5151
parentPath?: string
5252
leftPadding?: number
53-
expadedRows: Set<string>
53+
expandedRows: Set<string>
5454
selectedKey: RedisResponseBuffer
5555
isDownloaded: boolean
5656
onClickRemoveKey: (path: string, keyName: string) => void
@@ -80,7 +80,7 @@ export interface JSONScalarProps extends JSONCommonProps {
8080
export interface JSONObjectProps extends JSONCommonProps {
8181
type: ObjectTypes
8282
isDownloaded: boolean
83-
expadedRows: Set<string>
83+
expandedRows: Set<string>
8484
onJsonKeyExpandAndCollapse: (isExpanded: boolean, path: string) => void
8585
onClickRemoveKey: (path: string, keyName: string) => void
8686
handleSubmitUpdateValue?: (body: UpdateValueBody) => void

redisinsight/ui/src/pages/browser/modules/key-details/components/rejson-details/rejson-details/RejsonDetails.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const RejsonDetails = (props: BaseProps) => {
2525
parentPath,
2626
isDownloaded,
2727
onJsonKeyExpandAndCollapse,
28-
expadedRows
28+
expandedRows
2929
} = props
3030

3131
const [addRootKVPair, setAddRootKVPair] = useState<boolean>(false)
@@ -80,7 +80,7 @@ const RejsonDetails = (props: BaseProps) => {
8080
parentPath={parentPath}
8181
selectedKey={selectedKey}
8282
isDownloaded={isDownloaded}
83-
expadedRows={expadedRows}
83+
expandedRows={expandedRows}
8484
onClickRemoveKey={onClickRemoveKey}
8585
onJsonKeyExpandAndCollapse={onJsonKeyExpandAndCollapse}
8686
handleAppendRejsonObjectItemAction={handleAppendRejsonArrayItemAction}

redisinsight/ui/src/pages/browser/modules/key-details/components/rejson-details/rejson-dynamic-types/RejsonDynamicTypes.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const RejsonDynamicTypes = (props: DynamicTypesProps) => {
1414
selectedKey,
1515
parentPath = '',
1616
isDownloaded,
17-
expadedRows,
17+
expandedRows,
1818
leftPadding = 0,
1919
onClickRemoveKey,
2020
onJsonKeyExpandAndCollapse,
@@ -42,7 +42,7 @@ const RejsonDynamicTypes = (props: DynamicTypesProps) => {
4242

4343
const renderJSONObject = (data: any, type: string) => (
4444
<RejsonObject
45-
expadedRows={expadedRows}
45+
expandedRows={expandedRows}
4646
type={type as ObjectTypes}
4747
isDownloaded={isDownloaded}
4848
leftPadding={nextLeftPadding}

redisinsight/ui/src/pages/browser/modules/key-details/components/rejson-details/rejson-object/RejsonObject.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const RejsonObject = (props: JSONObjectProps) => {
1818
parentPath,
1919
keyName,
2020
isDownloaded,
21-
expadedRows,
21+
expandedRows,
2222
leftPadding,
2323
selectedKey,
2424
cardinality = 0,
@@ -43,14 +43,14 @@ const RejsonObject = (props: JSONObjectProps) => {
4343
const [isExpanded, setIsExpanded] = useState<boolean>(false)
4444

4545
useEffect(() => {
46-
if (!expadedRows?.has(path)) {
46+
if (!expandedRows?.has(path)) {
4747
setValue(defaultValue)
4848
return
4949
}
5050

5151
if (isDownloaded) {
5252
setValue(currentValue)
53-
setIsExpanded(expadedRows?.has(path))
53+
setIsExpanded(expandedRows?.has(path))
5454
return
5555
}
5656

@@ -173,7 +173,7 @@ const RejsonObject = (props: JSONObjectProps) => {
173173
/>
174174
) : (
175175
<RejsonDynamicTypes
176-
expadedRows={expadedRows}
176+
expandedRows={expandedRows}
177177
leftPadding={leftPadding}
178178
data={value}
179179
parentPath={path}

0 commit comments

Comments
 (0)