Skip to content

Commit

Permalink
Fix typo with thumbnail spelling (#279)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yofamb authored and Jason Lengstorf committed Aug 17, 2019
1 parent f5ffdeb commit 0dc9fcc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/components/Cart/CartListItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import styled from '@emotion/styled';

import { MdClose } from 'react-icons/md';

import CartThumbail from './CartThumbail';
import CartThumbnail from './CartThumbnail';
import { Input } from '../shared/FormElements';
import { Button } from '../shared/Buttons';

Expand All @@ -17,7 +17,7 @@ const CartListItemRoot = styled('li')`
padding: ${spacing.md}px 0;
`;

const Thumbail = styled(CartThumbail)`
const Thumbnail = styled(CartThumbnail)`
flex-grow: 0;
margin-left: ${spacing['2xs']}px;
margin-right: ${spacing.sm}px;
Expand Down Expand Up @@ -124,7 +124,7 @@ export default ({

return (
<CartListItemRoot>
<Thumbail
<Thumbnail
id={item.variant.image.id}
fallback={item.variant.image.src}
alt={item.variant.image.altText}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ import Image from 'gatsby-image';

import { colors, radius } from '../../utils/styles';

const CartThumbailRoot = styled(Image)`
const CartThumbnailRoot = styled(Image)`
border: 1px solid ${colors.brandLight};
border-radius: ${radius.default}px;
height: 36px;
width: 36px;
`;

const CartThumbail = ({
const CartThumbnail = ({
shopifyImages,
id: imageId,
fallback,
Expand All @@ -26,7 +26,7 @@ const CartThumbail = ({
imageProps.src = fallback;
}

return <CartThumbailRoot {...imageProps} />;
return <CartThumbnailRoot {...imageProps} />;
};

export default props => (
Expand Down Expand Up @@ -56,7 +56,7 @@ export default props => (
.map(({ node }) => node.images)
.reduce((acc, val) => acc.concat(val), []);

return <CartThumbail shopifyImages={images} {...props} />;
return <CartThumbnail shopifyImages={images} {...props} />;
}}
/>
);

0 comments on commit 0dc9fcc

Please sign in to comment.