mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-24 18:46:40 +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 { LOGOS } from '$constants/logos';
|
||||
import { connect } from 'react-redux';
|
||||
import * as React from "react";
|
||||
import { LOGOS } from "$constants/logos";
|
||||
import { connect } from "react-redux";
|
||||
import { IRootState } from "$redux/user/reducer";
|
||||
|
||||
interface Props extends IRootState {}
|
||||
|
@ -10,8 +10,8 @@ const Component = ({ logo }: Props) => (
|
|||
className="logo-preview"
|
||||
style={{
|
||||
backgroundImage: logo
|
||||
? `url(${LOGOS[logo][1]})`
|
||||
: 'none'
|
||||
? `url(${LOGOS && LOGOS[logo] && LOGOS[logo][1]})`
|
||||
: "none"
|
||||
}}
|
||||
/>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue