mirror of
https://github.com/vale981/Vulcan
synced 2025-03-08 19:11:38 -05:00
21 lines
No EOL
635 B
JavaScript
21 lines
No EOL
635 B
JavaScript
/*
|
|
The original Logo components is defined using React's
|
|
functional stateless component syntax, so we redefine
|
|
it the same way.
|
|
*/
|
|
|
|
import React from 'react';
|
|
import { IndexLink } from 'react-router';
|
|
import Users from 'meteor/vulcan:users';
|
|
import { replaceComponent } from 'meteor/vulcan:core';
|
|
|
|
const CustomLogo = ({logoUrl, siteTitle, currentUser}) => {
|
|
return (
|
|
<div>
|
|
<h1 className="logo-text"><IndexLink to="/">⭐{siteTitle}⭐</IndexLink></h1>
|
|
{ currentUser ? <span className="logo-hello">Welcome {Users.getDisplayName(currentUser)} 👋</span> : null}
|
|
</div>
|
|
)
|
|
}
|
|
|
|
replaceComponent('Logo', CustomLogo); |