mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-07-29 13:42:28 +02:00
Upgrade to Gatsby v2
This commit is contained in:
10
src/components/Sidebar/Copyright/Copyright.js
Normal file
10
src/components/Sidebar/Copyright/Copyright.js
Normal 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;
|
7
src/components/Sidebar/Copyright/Copyright.module.scss
Normal file
7
src/components/Sidebar/Copyright/Copyright.module.scss
Normal 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;
|
||||
}
|
14
src/components/Sidebar/Copyright/Copyright.test.js
Normal file
14
src/components/Sidebar/Copyright/Copyright.test.js
Normal 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();
|
||||
});
|
||||
});
|
@@ -0,0 +1,9 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`Copyright renders correctly 1`] = `
|
||||
<div
|
||||
className="copyright"
|
||||
>
|
||||
copyright
|
||||
</div>
|
||||
`;
|
1
src/components/Sidebar/Copyright/index.js
Normal file
1
src/components/Sidebar/Copyright/index.js
Normal file
@@ -0,0 +1 @@
|
||||
export { default } from './Copyright';
|
Reference in New Issue
Block a user