Skip to content

Commit

Permalink
feat: add hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
fupengl committed Mar 27, 2022
1 parent 34c82d4 commit 4e2bced
Show file tree
Hide file tree
Showing 8 changed files with 373 additions and 62 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ on:
push:
branches: [main]
paths:
- '**.ts'
- '**.tsx'
- 'src/**'
- '!**/__test__/**'
- 'package.json'

jobs:
Expand Down
5 changes: 3 additions & 2 deletions fixtures/src/demo/FormatterWrap/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ import React from 'react';
import { FormatterWrap } from '../../../../'

function FormatterWrapDemo() {
const [value, onChange] = React.useState<string[]>()
const [value, onChange] = React.useState<string[]>([])

console.log(value);

return <FormatterWrap<string, string[]>
value={value}
onChange={e => {
console.log(e)
onChange(e)
}}
inputFormatter={val => {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
"lint-staged": "^10.2.13",
"react": "16.14.0",
"react-dom": "16.14.0",
"stan-builder": "^0.14.1",
"stan-builder": "latest",
"standard-version": "^9.0.0",
"ts-jest": "^27.0.3",
"typescript": "4.1.5"
Expand Down
Loading

0 comments on commit 4e2bced

Please sign in to comment.