mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 02:56:41 +07:00
fixed broken logo
This commit is contained in:
parent
bbd7f801b4
commit
40c589063a
1 changed files with 5 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
||||||
import * as React from 'react';
|
import * as React from "react";
|
||||||
import { LOGOS } from '$constants/logos';
|
import { LOGOS } from "$constants/logos";
|
||||||
import { connect } from 'react-redux';
|
import { connect } from "react-redux";
|
||||||
import { IRootState } from "$redux/user/reducer";
|
import { IRootState } from "$redux/user/reducer";
|
||||||
|
|
||||||
interface Props extends IRootState {}
|
interface Props extends IRootState {}
|
||||||
|
@ -10,8 +10,8 @@ const Component = ({ logo }: Props) => (
|
||||||
className="logo-preview"
|
className="logo-preview"
|
||||||
style={{
|
style={{
|
||||||
backgroundImage: logo
|
backgroundImage: logo
|
||||||
? `url(${LOGOS[logo][1]})`
|
? `url(${LOGOS && LOGOS[logo] && LOGOS[logo][1]})`
|
||||||
: 'none'
|
: "none"
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue