Skip to content

Commit

Permalink
organize imports
Browse files Browse the repository at this point in the history
  • Loading branch information
bgoonz committed Mar 11, 2022
1 parent 0240102 commit 51fee0d
Show file tree
Hide file tree
Showing 24 changed files with 50 additions and 52 deletions.
6 changes: 3 additions & 3 deletions src/components/ActionLink.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React from 'react';
import _ from 'lodash';

import { Link, withPrefix, classNames } from '../utils';
import React from 'react';
import { classNames, Link, withPrefix } from '../utils';
import Icon from './Icon';


export default class ActionLink extends React.Component {
render() {
let action = _.get(this.props, 'action', null);
Expand Down
4 changes: 2 additions & 2 deletions src/components/CtaButtons.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import _ from 'lodash';
import React from 'react';
import { classNames, Link, withPrefix } from '../utils';

import { Link, withPrefix, classNames } from '../utils';

export default class CtaButtons extends React.Component {
render() {
Expand Down
6 changes: 3 additions & 3 deletions src/components/DocsMenu.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React from 'react';
import _ from 'lodash';

import { getPage, classNames, Link, withPrefix, pathJoin, getPages } from '../utils';
import React from 'react';
import { classNames, getPage, getPages, Link, pathJoin, withPrefix } from '../utils';
import DocsSubmenu from './DocsSubmenu';


export default class DocsMenu extends React.Component {
render() {
let site = _.get(this.props, 'site', null);
Expand Down
4 changes: 2 additions & 2 deletions src/components/DocsSubmenu.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import _ from 'lodash';

import React from 'react';
import { classNames, Link, withPrefix } from '../utils';


export default class DocsSubmenu extends React.Component {
render() {
let child_pages = _.get(this.props, 'child_pages', null);
Expand Down
4 changes: 2 additions & 2 deletions src/components/Footer.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import _ from 'lodash';
import React from 'react';

import { htmlToReact } from '../utils';

import ActionLink from './ActionLink';



export default class Footer extends React.Component {
render() {
return (
Expand Down
4 changes: 2 additions & 2 deletions src/components/Header.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import _ from 'lodash';
import { Link, withPrefix, classNames } from '../utils';
import React from 'react';
import { classNames, Link, withPrefix } from '../utils';
import ActionLink from './ActionLink';
import Submenu from './Submenu';
export default class Header extends React.Component {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Icon.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 5 additions & 7 deletions src/components/Layout.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import _ from 'lodash';
import React from 'react';
import { Helmet } from 'react-helmet';
import _ from 'lodash';

import { withPrefix, attribute } from '../utils';
import '../sass/main.scss';
import Header from './Header';
import { attribute, withPrefix } from '../utils';
import Footer from './Footer';
import Header from './Header';


export default class Body extends React.Component {
Expand All @@ -14,9 +13,8 @@ export default class Body extends React.Component {
<React.Fragment>
<Helmet>
<title>
{_.get(this.props, 'pageContext.frontmatter.seo.title', null)
? _.get(this.props, 'pageContext.frontmatter.seo.title', null)
: _.get(this.props, 'pageContext.frontmatter.title', null) + ' | ' + _.get(this.props, 'pageContext.site.siteMetadata.title', null)}
{_.get(this.props, 'pageContext.frontmatter.seo.title', null) ||
_.get(this.props, 'pageContext.frontmatter.title', null) + ' | ' + _.get(this.props, 'pageContext.site.siteMetadata.title', null)}
</title>
<meta charSet="utf-8" />
<meta name="viewport" content="width=device-width, initialScale=1.0" />
Expand Down
6 changes: 3 additions & 3 deletions src/components/SectionContent.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React from 'react';
import _ from 'lodash';

import { classNames, withPrefix, markdownify } from '../utils';
import React from 'react';
import { classNames, markdownify, withPrefix } from '../utils';
import CtaButtons from './CtaButtons';


export default class SectionContent extends React.Component {
render() {
let section = _.get(this.props, 'section', null);
Expand Down
4 changes: 2 additions & 2 deletions src/components/SectionCta.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React from 'react';
import _ from 'lodash';

import React from 'react';
import { htmlToReact } from '../utils';
import CtaButtons from './CtaButtons';


export default class SectionCta extends React.Component {
render() {
let section = _.get(this.props, 'section', null);
Expand Down
4 changes: 2 additions & 2 deletions src/components/SectionDocs.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import _ from 'lodash';
import React from 'react';
import { classNames, getPage, htmlToReact, Link, pathJoin, withPrefix } from '../utils';

import { classNames, htmlToReact, pathJoin, getPage, Link, withPrefix } from '../utils';

export default class SectionDocs extends React.Component {
render() {
Expand Down
6 changes: 3 additions & 3 deletions src/components/SectionGrid.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React from 'react';
import _ from 'lodash';

import { classNames, htmlToReact, withPrefix, Link, markdownify } from '../utils';
import React from 'react';
import { classNames, htmlToReact, Link, markdownify, withPrefix } from '../utils';
import CtaButtons from './CtaButtons';


export default class SectionGrid extends React.Component {
render() {
let section = _.get(this.props, 'section', null);
Expand Down
6 changes: 3 additions & 3 deletions src/components/SectionHero.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React from 'react';
import _ from 'lodash';

import { toStyleObj, withPrefix, markdownify } from '../utils';
import React from 'react';
import { markdownify, toStyleObj, withPrefix } from '../utils';
import CtaButtons from './CtaButtons';


export default class SectionHero extends React.Component {
render() {
let section = _.get(this.props, 'section', null);
Expand Down
4 changes: 2 additions & 2 deletions src/components/Submenu.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React from 'react';
import _ from 'lodash';

import React from 'react';
import { classNames } from '../utils';
import ActionLink from './ActionLink';


export default class Submenu extends React.Component {
render() {
let page = _.get(this.props, 'page', null);
Expand Down
2 changes: 1 addition & 1 deletion src/components/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import DocsSubmenu from './DocsSubmenu';
import Footer from './Footer';
import Header from './Header';
import Icon from './Icon';
import Layout from './Layout';
import SectionContent from './SectionContent';
import SectionCta from './SectionCta';
import SectionDocs from './SectionDocs';
import SectionGrid from './SectionGrid';
import SectionHero from './SectionHero';
import Submenu from './Submenu';
import Layout from './Layout';

export {
ActionLink,
Expand Down
Loading

0 comments on commit 51fee0d

Please sign in to comment.