mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-01-25 04:34:13 +00:00
Update prettier to latest. Remove tslint (#1641)
* Rev up prettier * Reformat * Remove deprecated tslint * Remove call to tslint and update package-lock.json
This commit is contained in:
@@ -50,12 +50,12 @@ interface Props {
|
||||
export const AccountSwitcher: FunctionComponent<Props> = ({ armToken, setDatabaseAccount }: Props) => {
|
||||
const subscriptions = useSubscriptions(armToken);
|
||||
const [selectedSubscriptionId, setSelectedSubscriptionId] = useState<string>(() =>
|
||||
localStorage.getItem("cachedSubscriptionId")
|
||||
localStorage.getItem("cachedSubscriptionId"),
|
||||
);
|
||||
const selectedSubscription = subscriptions?.find((sub) => sub.subscriptionId === selectedSubscriptionId);
|
||||
const accounts = useDatabaseAccounts(selectedSubscription?.subscriptionId, armToken);
|
||||
const [selectedAccountName, setSelectedAccountName] = useState<string>(() =>
|
||||
localStorage.getItem("cachedDatabaseAccountName")
|
||||
localStorage.getItem("cachedDatabaseAccountName"),
|
||||
);
|
||||
const selectedAccount = accounts?.find((account) => account.name === selectedAccountName);
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ it("switches tenant for user", () => {
|
||||
tenantId="test1-id"
|
||||
switchTenant={switchTenant}
|
||||
dismissPanel={dismissPanel}
|
||||
/>
|
||||
/>,
|
||||
);
|
||||
fireEvent.click(screen.getByLabelText(/test2-id/));
|
||||
expect(switchTenant).toHaveBeenCalledWith(directories[1].tenantId);
|
||||
|
||||
Reference in New Issue
Block a user