Web: Client: DocspaceLogo: fix style, add prop

This commit is contained in:
Viktor Fomin 2022-07-26 14:00:44 +03:00
parent 95db995dac
commit 4b2efc195d

View File

@ -6,12 +6,8 @@ import { isMobileOnly } from "react-device-detect";
const StyledWrapper = styled.div`
.logo-wrapper {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 46px;
padding-bottom: 64px;
@media ${hugeMobile} {
display: none;
@ -19,14 +15,15 @@ const StyledWrapper = styled.div`
}
`;
const DocspaceLogo = () => {
const DocspaceLogo = (props) => {
const { className } = props;
if (isMobileOnly) return <></>;
return (
<StyledWrapper>
<ReactSVG
src="/static/images/docspace.big.react.svg"
className="logo-wrapper"
className={`logo-wrapper ${className}`}
/>
</StyledWrapper>
);