Skip to content

Commit

Permalink
chore: remove the domain prop
Browse files Browse the repository at this point in the history
This commit removes the `domain` prop from the `Imgix` component to fix
an issue with the types. The `@types/react-imgix` repo doesn't yet have
the new `domain` prop defined.
  • Loading branch information
luqven committed Oct 21, 2021
1 parent b096d80 commit 4b5d6e7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions frontend/src/components/grids/AssetGrid.tsx
Expand Up @@ -14,8 +14,7 @@ export function AssetGrid({ assets, domain }: Props): ReactElement {
<div className="ix-grid-item" key={`${asset.id}-${idx}`}>
<div className="ix-grid-item-image">
<Imgix
domain={domain}
src={asset.attributes.origin_path}
src={"https://" + domain + asset.attributes.origin_path}
width={340}
height={340}
imgixParams={{
Expand Down

0 comments on commit 4b5d6e7

Please sign in to comment.