Skip to content

Commit 55146f5

Browse files
committed
fix(logo) compile error
1 parent d9ddcf9 commit 55146f5

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed
Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
//window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches
2-
export { ReactComponent as Logo } from "./logo.svg";
3-
export { ReactComponent as LogoWithName } from "./logo-with-name.svg";
2+
import { ReactComponent as LogoIcon } from "./logo.svg";
3+
import { ReactComponent as LogoWithNameIcon } from "./logo-with-name.svg";
44

55
export { default as favicon } from "./favicon.ico";
6+
7+
export const Logo = (props: { branding?: boolean }) => {
8+
return <LogoIcon />;
9+
};
10+
export const LogoWithName = (props: { branding?: boolean }) => {
11+
return <LogoWithNameIcon />;
12+
};

client/packages/openblocks/src/components/PageSkeleton.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@ import { Logo, LogoWithName } from "@openblocks-ee/assets/images";
66
import styled from "styled-components";
77
import { useSelector } from "react-redux";
88
import { getBrandingConfig, getSystemConfigFetching } from "../redux/selectors/configSelectors";
9-
import { getUser, isFetchUserFinished } from "../redux/selectors/usersSelectors";
10-
import { matchPath } from "react-router";
11-
import { AppPathParams } from "../constants/applicationConstants";
12-
import { APP_EDITOR_URL } from "../constants/routesURL";
9+
import { isFetchUserFinished } from "../redux/selectors/usersSelectors";
1310
import { CSSProperties } from "react";
1411

1512
interface IProps {

0 commit comments

Comments
 (0)