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

Commit

Permalink
Pass className prop for SiteIcon
Browse files Browse the repository at this point in the history
  • Loading branch information
perry-mitchell committed Aug 30, 2020
1 parent fbdbf1e commit 9bd1614
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/vault/SiteIcon.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const IconContainer = styled.div`
`;

export default function SiteIcon(props) {
const { domain = null, type = DEFAULT_ENTRY_TYPE } = props;
const { className, domain = null, type = DEFAULT_ENTRY_TYPE } = props;
const imgRef = useRef(null);
const [dynamicState, setDynamicState] = useState(DYNAMIC_STATE_LOADING);
const onImgError = useMemo(
Expand Down Expand Up @@ -65,7 +65,7 @@ export default function SiteIcon(props) {
imgRef.current.setAttribute('src', `${ICON_LOOKUP}${encodeURIComponent(domain)}`);
}, [imgRef.current]);
return (
<IconContainer>
<IconContainer className={className}>
<If
condition={dynamicState === DYNAMIC_STATE_LOADED || dynamicState === DYNAMIC_STATE_LOADING}
>
Expand Down

0 comments on commit 9bd1614

Please sign in to comment.