Skip to content
This repository has been archived by the owner on Jan 16, 2022. It is now read-only.

Commit

Permalink
fix: remove unnecessary ts ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoine Chalifour authored and antoinechalifour committed Oct 6, 2019
1 parent 852f6ee commit 7a8b158
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion src/components/ActionBar/ActionBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ class ActionBar extends Component {
}

private renderActionBar = ({ packageMeta }) => {
// @ts-ignore
const { latest } = packageMeta;

if (!latest) {
Expand Down
1 change: 0 additions & 1 deletion src/components/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ class Header extends Component<Props, State> {
switch (type) {
case 'help':
content = (
// @ts-ignore
<StyledExternalLink blank={true} to={'https://verdaccio.org/docs/en/installation'}>
<IconButton color={'inherit'}>
<Help />
Expand Down
4 changes: 1 addition & 3 deletions src/components/Icon/Icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,12 @@ export interface Props {
}

const Icon: React.FC<Props> = ({ className, name, size = 'sm', img = false, pointer = false, ...props }) => {
// @ts-ignore
const title = capitalize(name);
const title = capitalize(name.toString());
return img ? (
<ImgWrapper className={className} name={name} pointer={pointer} size={size} title={title} {...props}>
<Img alt={title} src={Icons[name]} />
</ImgWrapper>
) : (
// @ts-ignore
<Svg className={className} pointer={pointer} size={size} {...props}>
<title>{title}</title>
<use xlinkHref={`${Icons[name]}#${name}`} />
Expand Down
1 change: 0 additions & 1 deletion src/components/Package/Package.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ const Package: React.FC<PackageInterface> = ({
};

const renderSecondaryComponent = (): React.ReactNode => {
// @ts-ignore
const tags = keywords.sort().map((keyword, index) => <Tag key={index}>{keyword}</Tag>);
return (
<>
Expand Down

0 comments on commit 7a8b158

Please sign in to comment.