Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restyled by jq #1837

Merged
merged 19 commits into from
Mar 11, 2022
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);
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() {
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);
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);
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 (
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 {
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 {
@@ -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" />
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);
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);
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() {
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);
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);
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);
2 changes: 1 addition & 1 deletion src/components/index.js
Original file line number Diff line number Diff line change
@@ -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,
Loading