Skip to content

Commit

Permalink
added tooltip and removed text (#567)
Browse files Browse the repository at this point in the history
  • Loading branch information
starheim98 authored Jan 3, 2025
1 parent 4070328 commit 7d72440
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions frontend/beCompliant/src/components/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { getSortFuncForColumn } from './table/TableSort';
import { TableActions } from './tableActions/TableActions';
import { TableFilters } from './tableActions/TableFilter';
import { useEffect, useState } from 'react';
import { Flex, IconButton, Text } from '@kvib/react';
import { Flex, IconButton, Text, Tooltip } from '@kvib/react';
import { useNavigate } from 'react-router-dom';

type Props = {
Expand Down Expand Up @@ -179,16 +179,15 @@ export function TableComponent({
whiteSpace: 'nowrap', // Prevent wrapping
}}
>
<IconButton
aria-label="se mer"
icon="open_in_full"
size="md"
variant="ghost"
onClick={() => navigate(`${row.original.recordId}`)}
/>
<Text fontSize="sm" color="green.700">
Se mer
</Text>
<Tooltip label="Se mer">
<IconButton
aria-label="se mer"
icon="open_in_full"
size="md"
variant="ghost"
onClick={() => navigate(`${row.original.recordId}`)}
/>
</Tooltip>
</DataTableCell>
),
};
Expand Down

0 comments on commit 7d72440

Please sign in to comment.