Skip to content

Commit

Permalink
fix: hook export
Browse files Browse the repository at this point in the history
  • Loading branch information
dadamssg committed Apr 5, 2023
1 parent d5b3a0c commit d533fe5
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ A thin wrapper around the [exceljs](https://github.com/exceljs/exceljs) package
## Usage

```tsx
import useExcelJS from "react-use-exceljs"
import { useExcelJS } from "react-use-exceljs"

const data = [
{ id: 1, name: "Jane Doe", dob: new Date(1984, 6, 7) },
Expand Down
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import useExcelJS from "./react-use-exceljs"
import { useExcelJS } from "./react-use-exceljs"

const data = [
{ id: 1, name: "Jane Doe", dob: new Date(1984, 6, 7) },
Expand Down
2 changes: 1 addition & 1 deletion src/react-use-exceljs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from "react"
import { type Data, type Filename, type InterceptFn, type Sheet } from "./types"
import makeBuffer from "./makeBuffer"

export default function useExcelJS<T extends Array<Sheet>>({
export function useExcelJS<T extends Array<Sheet>>({
filename,
worksheets,
intercept,
Expand Down
1 change: 0 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export default defineConfig({
// the proper extensions will be added
fileName: "react-use-exceljs",
},
minify: false,
rollupOptions: {
// make sure to externalize deps that shouldn't be bundled
// into your library
Expand Down

0 comments on commit d533fe5

Please sign in to comment.