Skip to content

Commit

Permalink
fix(app): typing error
Browse files Browse the repository at this point in the history
  • Loading branch information
ful1e5 committed Nov 30, 2023
1 parent dfb814c commit b108a05
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/components/svgs/gems.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
import React from 'react';

type Props = {
gems: 'Amber' | 'Ice' | 'Classic' | 'Custom';
gems: string;
};

// eslint-disable-next-line no-unused-vars
export const GemsSVG: React.FC<Props> = (props) => {
if (props.gems === 'Amber')
if (props.gems === 'Amber') {
return (
<svg
className='fill-current h-12 sm:h-16'
Expand Down Expand Up @@ -83,8 +83,7 @@ export const GemsSVG: React.FC<Props> = (props) => {
</defs>
</svg>
);

if (props.gems === 'Ice')
} else if (props.gems === 'Ice') {
return (
<svg
className='fill-current h-12 sm:h-16'
Expand Down Expand Up @@ -167,8 +166,7 @@ export const GemsSVG: React.FC<Props> = (props) => {
</defs>
</svg>
);

if (props.gems === 'Classic')
} else if (props.gems === 'Classic') {
return (
<svg
className='fill-current h-12 sm:h-16'
Expand Down Expand Up @@ -249,8 +247,7 @@ export const GemsSVG: React.FC<Props> = (props) => {
</defs>
</svg>
);

if (props.gems === 'Custom')
} else {
return (
<svg
className='fill-current h-12 sm:h-16'
Expand Down Expand Up @@ -366,4 +363,5 @@ export const GemsSVG: React.FC<Props> = (props) => {
</defs>
</svg>
);
}
};

0 comments on commit b108a05

Please sign in to comment.