Skip to content

Commit

Permalink
Fix example files
Browse files Browse the repository at this point in the history
- Remove duplicate `createGlobalStyle` section.
- Fix typescript interface definition.
  • Loading branch information
fleischie committed Nov 9, 2018
1 parent d251242 commit b3de754
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
12 changes: 0 additions & 12 deletions examples/apis.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,18 +121,6 @@ createGlobalStyle`
}
`;

// - createGlobalStyle
createGlobalStyle`
@font-face {
font-family: 'Operator Mono';
src: url('../fonts/Operator-Mono.ttf');
}
body {
margin: 0;
}
`;

// class based stylings
class Container {
render() {
Expand Down
4 changes: 2 additions & 2 deletions examples/typescript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import styled from 'styled-components';


interface SectionProps {
children?: React.ReactChild,
className?: string,
children?: React.ReactChild;
className?: string;
}


Expand Down

0 comments on commit b3de754

Please sign in to comment.