mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-26 11:36:40 +07:00
top panels code cleanup
This commit is contained in:
parent
25630a30b8
commit
eae5a893fc
8 changed files with 572 additions and 502 deletions
|
@ -1,7 +1,12 @@
|
|||
import React from 'react';
|
||||
import { LOGOS } from '$constants/logos';
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
export const LogoPreview = ({ logo }) => (
|
||||
type Props = {
|
||||
logo: string
|
||||
};
|
||||
|
||||
const Component = ({ logo }: Props) => (
|
||||
<div
|
||||
className="logo-preview"
|
||||
style={{
|
||||
|
@ -11,3 +16,10 @@ export const LogoPreview = ({ logo }) => (
|
|||
}}
|
||||
/>
|
||||
);
|
||||
|
||||
function mapStateToProps(state) {
|
||||
const { user: { logo } } = state;
|
||||
return { logo };
|
||||
}
|
||||
|
||||
export const LogoPreview = connect(mapStateToProps)(Component);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue