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