mirror of
https://github.com/strapi/strapi.git
synced 2025-11-01 18:33:55 +00:00
minor changes
This commit is contained in:
parent
c59186133c
commit
4439cc4f64
@ -7,7 +7,7 @@ import { Typography } from '@strapi/design-system/Typography';
|
||||
import { Tbody, Td, Tr } from '@strapi/design-system/Table';
|
||||
import Eye from '@strapi/icons/Eye';
|
||||
import { onRowClick, stopPropagation } from '@strapi/helper-plugin';
|
||||
import useFormatTimeStamp from '../../utils/useFormatTimeStamp';
|
||||
import useFormatTimeStamp from '../../hooks/useFormatTimeStamp';
|
||||
|
||||
const FormatTimeStamp = ({ value }) => {
|
||||
return useFormatTimeStamp(value);
|
||||
@ -40,7 +40,7 @@ const TableRows = ({ headers, rows, onModalToggle }) => {
|
||||
<Flex justifyContent="end">
|
||||
<IconButton
|
||||
onClick={() => onModalToggle(data.id)}
|
||||
label={formatMessage(
|
||||
aria-label={formatMessage(
|
||||
{ id: 'app.component.table.view', defaultMessage: '{target} details' },
|
||||
{ target: `${data.action} action` }
|
||||
)}
|
||||
|
||||
@ -7,7 +7,7 @@ import { Grid } from '@strapi/design-system/Grid';
|
||||
import { Box } from '@strapi/design-system/Box';
|
||||
import { Typography } from '@strapi/design-system/Typography';
|
||||
import { pxToRem } from '@strapi/helper-plugin';
|
||||
import useFormatTimeStamp from '../utils/useFormatTimeStamp';
|
||||
import useFormatTimeStamp from '../hooks/useFormatTimeStamp';
|
||||
import ActionItem from './ActionItem';
|
||||
|
||||
const ModalDialog = ({ onToggle, data: { date, user, action } }) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user