Upgrade to Gatsby v2

This commit is contained in:
alxshelepenok
2018-11-09 20:08:48 +03:00
parent e83dfc6dff
commit 8b92891329
204 changed files with 18708 additions and 3904 deletions

View File

@@ -0,0 +1,10 @@
import React from 'react';
import styles from './Copyright.module.scss';
const Copyright = ({ copyright }) => (
<div className={styles['copyright']}>
{copyright}
</div>
);
export default Copyright;

View File

@@ -0,0 +1,7 @@
@import '../../../assets/scss/variables';
@import '../../../assets/scss/mixins';
.copyright {
color: lighten($color-gray, 18%);
font-size: $typographic-small-font-size;
}

View File

@@ -0,0 +1,14 @@
import React from 'react';
import renderer from 'react-test-renderer';
import Copyright from './Copyright';
describe('Copyright', () => {
it('renders correctly', () => {
const props = {
copyright: 'copyright'
};
const tree = renderer.create(<Copyright {...props} />).toJSON();
expect(tree).toMatchSnapshot();
});
});

View File

@@ -0,0 +1,9 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Copyright renders correctly 1`] = `
<div
className="copyright"
>
copyright
</div>
`;

View File

@@ -0,0 +1 @@
export { default } from './Copyright';