Skip to content

Commit

Permalink
fix(Head): replace icon with internal Icon comp in Head
Browse files Browse the repository at this point in the history
replace icon with internal Icon comp in Head
  • Loading branch information
matteoterrinoni committed Jan 24, 2019
1 parent 8b6333b commit ec3cd21
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"commitmsg": "validate-commit-msg"
},
"lint-staged": {
"{src,test}/**/*.ts": [
"{src,test}/**/*.{ts, tsx}": [
"prettier --write --no-semi --single-quote",
"git add"
]
Expand Down
3 changes: 2 additions & 1 deletion src/head.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import CP, {
Sort,
sortTypes
} from './model'
import Icon from './icon';

export type Props<T> = {
height?,
Expand Down Expand Up @@ -56,7 +57,7 @@ const Head: <T>(N:Props<T>)=>any = (p) => {
{c.title || c.name}
{
sort &&
<i className="material-icons">{sortTypes[sort].icon}</i>
<Icon name={sortTypes[sort].icon}/>
}
</div>
)
Expand Down

0 comments on commit ec3cd21

Please sign in to comment.