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