X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/25216cc7acedc987c26a159f0b640210c0ef101e..44d370d6e0e9e91dbc579e7d990667d52ad67b17:/src/views/my-account-panel/my-account-panel-root.tsx diff --git a/src/views/my-account-panel/my-account-panel-root.tsx b/src/views/my-account-panel/my-account-panel-root.tsx index 141e16a9..283b9acc 100644 --- a/src/views/my-account-panel/my-account-panel-root.tsx +++ b/src/views/my-account-panel/my-account-panel-root.tsx @@ -2,7 +2,7 @@ // // SPDX-License-Identifier: AGPL-3.0 -import * as React from 'react'; +import React from 'react'; import { Field, InjectedFormProps, WrappedFieldProps } from "redux-form"; import { TextField } from "components/text-field/text-field"; import { NativeSelectField } from "components/select-field/select-field"; @@ -68,7 +68,7 @@ type MyAccountPanelRootProps = InjectedFormProps type LocalClusterProp = { localCluster: string }; const renderField: React.ComponentType = ({ input, localCluster }) => ( - {localCluster === input.value.substr(0, 5) ? "" : "federated"} user {input.value} + {localCluster === input.value.substring(0, 5) ? "" : "federated"} user {input.value} ); export const MyAccountPanelRoot = withStyles(styles)( @@ -84,7 +84,7 @@ export const MyAccountPanelRoot = withStyles(styles)( @@ -92,7 +92,7 @@ export const MyAccountPanelRoot = withStyles(styles)( @@ -100,7 +100,7 @@ export const MyAccountPanelRoot = withStyles(styles)( @@ -108,7 +108,7 @@ export const MyAccountPanelRoot = withStyles(styles)( @@ -116,7 +116,7 @@ export const MyAccountPanelRoot = withStyles(styles)( @@ -125,7 +125,7 @@ export const MyAccountPanelRoot = withStyles(styles)( @@ -135,7 +135,7 @@ export const MyAccountPanelRoot = withStyles(styles)( @@ -143,7 +143,7 @@ export const MyAccountPanelRoot = withStyles(styles)(