Strict mode SwitchAccount and SwitchSubscription files (#940)
This commit is contained in:
parent
b115bb34ca
commit
8a3929775b
|
@ -26,7 +26,7 @@ export const SwitchAccount: FunctionComponent<Props> = ({
|
||||||
data: account,
|
data: account,
|
||||||
}))}
|
}))}
|
||||||
onChange={(_, option) => {
|
onChange={(_, option) => {
|
||||||
setSelectedAccountName(String(option.key));
|
setSelectedAccountName(String(option?.key));
|
||||||
dismissMenu();
|
dismissMenu();
|
||||||
}}
|
}}
|
||||||
defaultSelectedKey={selectedAccount?.name}
|
defaultSelectedKey={selectedAccount?.name}
|
||||||
|
|
|
@ -26,7 +26,7 @@ export const SwitchSubscription: FunctionComponent<Props> = ({
|
||||||
};
|
};
|
||||||
})}
|
})}
|
||||||
onChange={(_, option) => {
|
onChange={(_, option) => {
|
||||||
setSelectedSubscriptionId(String(option.key));
|
setSelectedSubscriptionId(String(option?.key));
|
||||||
}}
|
}}
|
||||||
defaultSelectedKey={selectedSubscription?.subscriptionId}
|
defaultSelectedKey={selectedSubscription?.subscriptionId}
|
||||||
placeholder={subscriptions && subscriptions.length === 0 ? "No Subscriptions Found" : "Select a Subscription"}
|
placeholder={subscriptions && subscriptions.length === 0 ? "No Subscriptions Found" : "Select a Subscription"}
|
||||||
|
|
|
@ -140,7 +140,9 @@
|
||||||
"./src/quickstart.ts",
|
"./src/quickstart.ts",
|
||||||
"./src/setupTests.ts",
|
"./src/setupTests.ts",
|
||||||
"./src/userContext.test.ts",
|
"./src/userContext.test.ts",
|
||||||
"src/Common/EntityValue.tsx"
|
"src/Common/EntityValue.tsx",
|
||||||
|
"./src/Platform/Hosted/Components/SwitchAccount.tsx",
|
||||||
|
"./src/Platform/Hosted/Components/SwitchSubscription.tsx",
|
||||||
],
|
],
|
||||||
"include": [
|
"include": [
|
||||||
"src/CellOutputViewer/transforms/**/*",
|
"src/CellOutputViewer/transforms/**/*",
|
||||||
|
|
Loading…
Reference in New Issue