X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/b3ffad71aa43fcb8db2d2c7a20ee0ef588e37e04..fea546c92e3a63f0435a69352d4189dc89fb94aa:/src/views/ssh-key-panel/ssh-key-panel-root.tsx diff --git a/src/views/ssh-key-panel/ssh-key-panel-root.tsx b/src/views/ssh-key-panel/ssh-key-panel-root.tsx index 869662dd01..99ad1bffd3 100644 --- a/src/views/ssh-key-panel/ssh-key-panel-root.tsx +++ b/src/views/ssh-key-panel/ssh-key-panel-root.tsx @@ -2,11 +2,11 @@ // // SPDX-License-Identifier: AGPL-3.0 -import * as React from 'react'; +import React from 'react'; import { StyleRulesCallback, WithStyles, withStyles, Card, CardContent, Button, Typography, Grid, Table, TableHead, TableRow, TableCell, TableBody, Tooltip, IconButton } from '@material-ui/core'; -import { ArvadosTheme } from '~/common/custom-theme'; -import { SshKeyResource } from '~/models/ssh-key'; -import { AddIcon, MoreOptionsIcon, KeyIcon } from '~/components/icon/icon'; +import { ArvadosTheme } from 'common/custom-theme'; +import { SshKeyResource } from 'models/ssh-key'; +import { AddIcon, MoreOptionsIcon, KeyIcon } from 'components/icon/icon'; type CssRules = 'root' | 'link' | 'buttonContainer' | 'table' | 'tableRow' | 'keyIcon'; @@ -38,7 +38,7 @@ const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ export interface SshKeyPanelRootActionProps { openSshKeyCreateDialog: () => void; - openRowOptions: (event: React.MouseEvent, index: number, sshKey: SshKeyResource) => void; + openRowOptions: (event: React.MouseEvent, sshKey: SshKeyResource) => void; openPublicKeyDialog: (name: string, publicKey: string) => void; } @@ -55,14 +55,14 @@ export const SshKeyPanelRoot = withStyles(styles)( - { !hasKeys && + { !hasKeys && You have not yet set up an SSH public key for use with Arvados. Learn more. } - { !hasKeys && + { !hasKeys && When you have an SSH key you would like to use, add it using button below. } @@ -102,7 +102,7 @@ export const SshKeyPanelRoot = withStyles(styles)( - openRowOptions(event, index, sshKey)}> + openRowOptions(event, sshKey)}>