refactors all client paths to incorporate new import structure
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import React, { Component } from 'react';
|
||||
import { BrowserRouter as Router } from 'react-router-dom';
|
||||
import { Provider } from 'react-redux';
|
||||
import MeasureWindow from 'payload/client/components/utilities/MeasureWindow';
|
||||
import MeasureScroll from 'payload/client/components/utilities/MeasureScroll';
|
||||
import LoadContent from 'payload/client/components/utilities/LoadContent';
|
||||
import { MeasureWindow } from 'payload/components';
|
||||
import { MeasureScroll } from 'payload/components';
|
||||
import { LoadContent } from 'payload/components';
|
||||
|
||||
import 'payload/client/scss/app.css';
|
||||
import '../scss/app.css';
|
||||
|
||||
class App extends Component {
|
||||
render() {
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
import React from 'react';
|
||||
|
||||
const Test = () => {
|
||||
return (
|
||||
<h1>Test</h1>
|
||||
);
|
||||
};
|
||||
|
||||
export default Test;
|
||||
@@ -1,7 +0,0 @@
|
||||
import React from 'react';
|
||||
|
||||
export default () => {
|
||||
return (
|
||||
<h1>Test2</h1>
|
||||
);
|
||||
};
|
||||
@@ -1,5 +1,5 @@
|
||||
import React, { Component } from 'react';
|
||||
import Tooltip from '../../modules/Tooltip';
|
||||
import { Tooltip } from 'payload/components';
|
||||
|
||||
import './index.css';
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React, { Component } from 'react';
|
||||
import Tooltip from '../../modules/Tooltip';
|
||||
import { Tooltip } from 'payload/components';
|
||||
|
||||
import './index.css';
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import React, { Component } from 'react';
|
||||
import { withRouter } from 'react-router-dom';
|
||||
|
||||
import ajax from '../../../ajax';
|
||||
import { ajax } from 'payload';
|
||||
|
||||
import './index.css';
|
||||
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
import Test from './Test';
|
||||
import Test2 from './Test2';
|
||||
|
||||
export {
|
||||
Test,
|
||||
Test2
|
||||
};
|
||||
@@ -1,6 +1,6 @@
|
||||
import React from 'react';
|
||||
import Sidebar from '../Sidebar';
|
||||
import StepNav from '../../modules/StepNav';
|
||||
import { Sidebar } from 'payload/components';
|
||||
import { StepNav } from 'payload/components';
|
||||
|
||||
import './index.css';
|
||||
|
||||
|
||||
@@ -2,9 +2,10 @@ import React, { Component } from 'react';
|
||||
import { withRouter } from 'react-router-dom';
|
||||
import { connect } from 'react-redux';
|
||||
import { NavLink, Link } from 'react-router-dom';
|
||||
import { Arrow } from 'payload/components';
|
||||
import { Label } from 'payload/components';
|
||||
|
||||
import Icon from 'local/client/components/graphics/Icon';
|
||||
import Arrow from 'payload/client/components/graphics/Arrow';
|
||||
import Label from 'payload/client/components/type/Label';
|
||||
|
||||
import './index.css';
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import React from 'react';
|
||||
|
||||
import Label from 'payload/client/components/type/Label';
|
||||
import { Label } from 'payload/components';
|
||||
|
||||
export default props => {
|
||||
return (
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React, { Component } from 'react';
|
||||
import Input from 'payload/client/components/field-types/Input';
|
||||
import { Input } from 'payload/components';
|
||||
|
||||
class Filter extends Component {
|
||||
render() {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React from 'react';
|
||||
import Button from 'payload/client/components/controls/Button';
|
||||
import { Button } from 'payload/components';
|
||||
|
||||
import './index.css';
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import React, { Component } from 'react';
|
||||
import { connect } from 'react-redux';
|
||||
import { Link } from 'react-router-dom';
|
||||
import Label from 'payload/client/components/type/Label';
|
||||
import Arrow from 'payload/client/components/graphics/Arrow';
|
||||
import { Label } from 'payload/components';
|
||||
import { Arrow } from 'payload/components';
|
||||
|
||||
import './index.css';
|
||||
|
||||
|
||||
@@ -3,13 +3,12 @@ import React from 'react';
|
||||
import './Tooltip.css';
|
||||
|
||||
export default (props) => {
|
||||
let className = props.className ? `tooltip ${props.className}` : 'tooltip';
|
||||
|
||||
let className = props.className ? `tooltip ${props.className}` : 'tooltip';
|
||||
|
||||
return (
|
||||
<aside className={className}>
|
||||
{props.children}
|
||||
<span></span>
|
||||
</aside>
|
||||
);
|
||||
}
|
||||
return (
|
||||
<aside className={className}>
|
||||
{props.children}
|
||||
<span></span>
|
||||
</aside>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import React from 'react';
|
||||
import { Link } from 'react-router-dom';
|
||||
import SetStepNav from 'payload/client/components/utilities/SetStepNav';
|
||||
import { SetStepNav } from 'payload/components';
|
||||
|
||||
import './index.css';
|
||||
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
import React from 'react';
|
||||
import { Link } from 'react-router-dom';
|
||||
import ContentBlock from 'payload/client/components/layout/ContentBlock';
|
||||
import { ContentBlock } from 'payload/components';
|
||||
import { Form } from 'payload/components';
|
||||
import { Input } from 'payload/components';
|
||||
import { Button } from 'payload/components';
|
||||
|
||||
import Logo from 'local/client/components/graphics/Logo';
|
||||
import Form from 'payload/client/components/forms/Form';
|
||||
import Input from 'payload/client/components/field-types/Input';
|
||||
import Button from 'payload/client/components/controls/Button';
|
||||
|
||||
import './index.css';
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React from 'react';
|
||||
import SetStepNav from 'payload/client/components/utilities/SetStepNav';
|
||||
import { SetStepNav } from 'payload/components';
|
||||
|
||||
import './index.css';
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React from 'react';
|
||||
import SetStepNav from 'payload/client/components/utilities/SetStepNav';
|
||||
import { SetStepNav } from 'payload/components';
|
||||
|
||||
import './index.css';
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React from 'react';
|
||||
import SetStepNav from 'payload/client/components/utilities/SetStepNav';
|
||||
import { SetStepNav } from 'payload/components';
|
||||
|
||||
export default props => {
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user