ant-design/site/theme/template/Layout/Header/Logo.tsx
xrk 737bd60f23
docs: add direction & theme to url (#26567)
* 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>
2020-09-14 10:48:08 +08:00

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;