mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-02-16 17:25:58 +00:00
Add files to strict mode (#775)
This commit is contained in:
parent
3b6b987149
commit
afd7f43eb8
@ -32,7 +32,7 @@ export const EntityValue: FunctionComponent<TableEntityProps> = ({
|
|||||||
<DatePicker
|
<DatePicker
|
||||||
className="addEntityDatePicker"
|
className="addEntityDatePicker"
|
||||||
placeholder={entityValuePlaceholder}
|
placeholder={entityValuePlaceholder}
|
||||||
value={entityValue && new Date(entityValue)}
|
value={entityValue ? new Date(entityValue) : new Date()}
|
||||||
ariaLabel={entityValuePlaceholder}
|
ariaLabel={entityValuePlaceholder}
|
||||||
onSelectDate={onSelectDate}
|
onSelectDate={onSelectDate}
|
||||||
disabled={isEntityValueDisable}
|
disabled={isEntityValueDisable}
|
||||||
@ -59,7 +59,7 @@ export const EntityValue: FunctionComponent<TableEntityProps> = ({
|
|||||||
disabled={isEntityValueDisable}
|
disabled={isEntityValueDisable}
|
||||||
type={entityValueType}
|
type={entityValueType}
|
||||||
placeholder={entityValuePlaceholder}
|
placeholder={entityValuePlaceholder}
|
||||||
value={typeof entityValue === "string" && entityValue}
|
value={typeof entityValue === "string" ? entityValue : ""}
|
||||||
onChange={onEntityValueChange}
|
onChange={onEntityValueChange}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
@ -4,8 +4,8 @@ import { ConfigContext, initializeConfiguration } from "../ConfigContext";
|
|||||||
// This hook initializes global configuration from a config.json file that is injected at deploy time
|
// This hook initializes global configuration from a config.json file that is injected at deploy time
|
||||||
// This allows the same main Data Explorer build to be exactly the same in all clouds/platforms,
|
// This allows the same main Data Explorer build to be exactly the same in all clouds/platforms,
|
||||||
// but override some of the configuration as nesssary
|
// but override some of the configuration as nesssary
|
||||||
export function useConfig(): Readonly<ConfigContext> {
|
export function useConfig(): Readonly<ConfigContext | undefined> {
|
||||||
const [state, setState] = useState<ConfigContext>();
|
const [state, setState] = useState<ConfigContext | undefined>();
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
initializeConfiguration().then((response) => setState(response));
|
initializeConfiguration().then((response) => setState(response));
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
"noUnusedParameters": true
|
"noUnusedParameters": true
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
|
"src/Common/EntityValue.tsx",
|
||||||
"./src/AuthType.ts",
|
"./src/AuthType.ts",
|
||||||
"./src/Bindings/ReactBindingHandler.ts",
|
"./src/Bindings/ReactBindingHandler.ts",
|
||||||
"./src/Common/ArrayHashMap.ts",
|
"./src/Common/ArrayHashMap.ts",
|
||||||
@ -114,6 +115,7 @@
|
|||||||
"./src/Utils/StyleUtils.ts",
|
"./src/Utils/StyleUtils.ts",
|
||||||
"./src/Utils/WindowUtils.test.ts",
|
"./src/Utils/WindowUtils.test.ts",
|
||||||
"./src/Utils/WindowUtils.ts",
|
"./src/Utils/WindowUtils.ts",
|
||||||
|
"./src/hooks/useConfig.ts",
|
||||||
"./src/hooks/useDirectories.tsx",
|
"./src/hooks/useDirectories.tsx",
|
||||||
"./src/hooks/useFullScreenURLs.tsx",
|
"./src/hooks/useFullScreenURLs.tsx",
|
||||||
"./src/hooks/useGraphPhoto.tsx",
|
"./src/hooks/useGraphPhoto.tsx",
|
||||||
@ -144,4 +146,4 @@
|
|||||||
"src/Terminal/**/*",
|
"src/Terminal/**/*",
|
||||||
"src/Utils/arm/**/*"
|
"src/Utils/arm/**/*"
|
||||||
]
|
]
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user