Skip to content

Commit

Permalink
refactor: simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
KnowsCount committed Mar 19, 2022
1 parent 5563541 commit 3ff5d4b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "contribution-heatmap",
"version": "1.3.2",
"version": "1.4.1",
"description": "a github-inspired react contribution heatmap component",
"scripts": {
"test": "jest",
Expand Down
10 changes: 1 addition & 9 deletions src/heatmap/Heatmap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,7 @@ export interface IProps {
tooltipContent?: string
}

const Heatmap: React.FC<IProps> = (props: {
colour?: string[]
squareNumber?: number
count: number[]
squareGap?: string
squareSize?: string
fontSize?: string
tooltipContent?: string
}) => {
const Heatmap: React.FC<IProps> = (props: IProps) => {
// variables
let colour = props.colour || [
'#ebedf0',
Expand Down

1 comment on commit 3ff5d4b

@vercel
Copy link

@vercel vercel bot commented on 3ff5d4b Mar 19, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.