Skip to content

Commit 1d40fb6

Browse files
made components exportable
1 parent a15f827 commit 1d40fb6

File tree

6 files changed

+18
-18
lines changed

6 files changed

+18
-18
lines changed

oss

Submodule oss updated from 5429519 to cb5f3e7

packages/gatsby-theme/index.js

-1
This file was deleted.

packages/gatsby-theme/index.ts

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// no-op
2+
import Button from './src/components/Button'
3+
4+
export {
5+
Button
6+
}

packages/gatsby-theme/package-lock.json

-14
This file was deleted.

packages/gatsby-theme/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@howtographql/gatsby-theme",
33
"version": "0.0.1",
44
"description": "The content/gatsby theme for htg2",
5-
"main": "index.js",
5+
"main": "index.ts",
66
"license": "MIT",
77
"scripts": {
88
"generate": "graphql-codegen"
@@ -97,4 +97,4 @@
9797
"html"
9898
]
9999
}
100-
}
100+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import React from 'react'
2+
3+
export default function Button() {
4+
return (
5+
<button>
6+
This is a button component
7+
</button>
8+
)
9+
}

0 commit comments

Comments
 (0)