mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-15 00:29:12 +08:00
737bd60f23
* docs: add direction to localStorage * wip * wip * wip * wip * browserHistory push * add slider menu click query * expand getLocalizedPathname * add logo footer query * fix lint * wip pathname * wip: fix pathname * add hash & theme * remove only component theme * fix theme component change * change var * remove static * change color * chore: optimize code style * fix: exchange theme when router is change * fix: pathname * fix: location pathname * change dark * fix theme * fix router listen theme * remove console Co-authored-by: Kermit <kermitlx@outlook.com>
24 lines
531 B
TypeScript
24 lines
531 B
TypeScript
import * as React from 'react';
|
|
import { Link } from 'bisheng/router';
|
|
import * as utils from '../../utils';
|
|
|
|
import './Logo.less';
|
|
|
|
export interface LogoProps {
|
|
isZhCN: boolean;
|
|
location: any;
|
|
}
|
|
|
|
const Logo = ({ isZhCN, location }: LogoProps) => {
|
|
return (
|
|
<h1>
|
|
<Link to={utils.getLocalizedPathname('/', isZhCN, location.query)} id="logo">
|
|
<img alt="logo" src="https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg" />
|
|
Ant Design
|
|
</Link>
|
|
</h1>
|
|
);
|
|
};
|
|
|
|
export default Logo;
|