Skip to content

Commit

Permalink
Added path tooltip on eye icon in installed versions page
Browse files Browse the repository at this point in the history
  • Loading branch information
suprishi committed Dec 10, 2020
1 parent abe5ce4 commit ac056dc
Showing 1 changed file with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { ChangeEvent } from 'react';
import { DevonIdeScript } from './Installations.contoller';
import { TextField, Card, Typography } from '@material-ui/core';
import { TextField, Card, Typography, Tooltip } from '@material-ui/core';
import TableContainer from '@material-ui/core/TableContainer';
import Table from '@material-ui/core/Table';
import TableHead from '@material-ui/core/TableHead';
Expand Down Expand Up @@ -89,13 +89,15 @@ export default function InstallationsView(
<TableCell>{installation.version}</TableCell>
<TableCell>
{installation.path ? (
<IconButton
onClick={() => {
props.viewIdeHandler(installation.path);
}}
>
<VisibilityIcon fontSize="small" />
</IconButton>
<Tooltip title={installation.path} placement="top" arrow>
<IconButton
onClick={() => {
props.viewIdeHandler(installation.path);
}}
>
<VisibilityIcon fontSize="small" />
</IconButton>
</Tooltip>
) : null}
</TableCell>
<TableCell>{installation.updated}</TableCell>
Expand Down

0 comments on commit ac056dc

Please sign in to comment.