Skip to content

Commit

Permalink
fix(TagsClound): add missing types
Browse files Browse the repository at this point in the history
issue #82
  • Loading branch information
sabertazimi committed Aug 2, 2021
1 parent 59c44a2 commit 2e0c2a9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/TagsCloud/TagsCloud.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,14 @@ import React from 'react';
import { Link } from 'gatsby';
import { Tag } from 'antd';
import { Colors, getColorByName } from '@config';
import { TagType, TagsType } from '@types';

const TagsCloud = ({ tags, activeTag }) => {
interface Props {
tags: TagsType;
activeTag: TagType;
}

const TagsCloud = ({ tags, activeTag }: Props): JSX.Element => {
let tagsList = Object.keys(tags).sort((a, b) => {
return tags[b] - tags[a];
});
Expand Down

0 comments on commit 2e0c2a9

Please sign in to comment.