mirror of
https://github.com/strapi/strapi.git
synced 2025-11-01 02:16:03 +00:00
Move files and fix tests with date
Signed-off-by: soupette <cyril@strapi.io>
This commit is contained in:
parent
1ec3faa433
commit
d91193b022
@ -19,7 +19,7 @@ const Informations = () => {
|
||||
const updatedByLastname = initialData.updated_by?.lastname || '';
|
||||
const updatedByUsername = initialData.updated_by?.username;
|
||||
const updatedBy = updatedByUsername || `${updatedByFirstname} ${updatedByLastname}`;
|
||||
const currentTime = useRef(new Date().getTime());
|
||||
const currentTime = useRef(Date.now());
|
||||
const timestamp = initialData[updatedAt]
|
||||
? new Date(initialData[updatedAt]).getTime()
|
||||
: Date.now();
|
||||
|
||||
@ -154,7 +154,7 @@ describe('CONTENT MANAGER | EditView | Header', () => {
|
||||
<span
|
||||
class="c7"
|
||||
>
|
||||
7 hours ago
|
||||
now
|
||||
</span>
|
||||
</div>
|
||||
<div
|
||||
|
||||
@ -15,7 +15,7 @@ import {
|
||||
useNotification,
|
||||
request,
|
||||
} from '@strapi/helper-plugin';
|
||||
import { getTrad } from '../../utils';
|
||||
import { getTrad } from '../../../utils';
|
||||
import { cleanData, generateOptions } from './utils';
|
||||
|
||||
const CMEditViewCopyLocale = props => {
|
||||
@ -6,7 +6,7 @@ import PropTypes from 'prop-types';
|
||||
import get from 'lodash/get';
|
||||
import { Flex, Text } from '@buffetjs/core';
|
||||
import { RelationDPState } from '@strapi/helper-plugin';
|
||||
import { getTrad } from '../../utils';
|
||||
import { getTrad } from '../../../utils';
|
||||
|
||||
const TextGrow = styled(Text)`
|
||||
flex-grow: 2;
|
||||
@ -14,7 +14,7 @@ import { useTheme } from 'styled-components';
|
||||
// import { DropdownIndicator, BaselineAlignment, selectStyles } from '@strapi/helper-plugin';
|
||||
import { useHistory } from 'react-router-dom';
|
||||
import { stringify } from 'qs';
|
||||
import { getTrad } from '../../utils';
|
||||
import { getTrad } from '../../../utils';
|
||||
import { addStatusColorToLocale, createLocalesOption } from './utils';
|
||||
// import CMEditViewCopyLocale from '../CMEditViewCopyLocale';
|
||||
// import OptionComponent from './Option';
|
||||
@ -5,7 +5,7 @@ import { useParams } from 'react-router-dom';
|
||||
import { useContentManagerEditViewDataManager, useQueryParams } from '@strapi/helper-plugin';
|
||||
import selectI18NLocales from '../../selectors/selectI18nLocales';
|
||||
import useContentTypePermissions from '../../hooks/useContentTypePermissions';
|
||||
import CMEditViewLocalePicker from '../CMEditViewLocalePicker';
|
||||
import CMEditViewLocalePicker from './CMEditViewLocalePicker';
|
||||
|
||||
const CMEditViewInjectedComponents = () => {
|
||||
const { layout, modifiedData, slug, isSingleType } = useContentManagerEditViewDataManager();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user