Skip to content

Commit

Permalink
docs: add full change log link (#43986)
Browse files Browse the repository at this point in the history
* site: add full changelog link

* chore: update Link

* Apply suggestions from code review

Signed-off-by: MadCcc <1075746765@qq.com>

---------

Signed-off-by: MadCcc <1075746765@qq.com>
Co-authored-by: MadCcc <1075746765@qq.com>
  • Loading branch information
afc163 and MadCcc committed Aug 3, 2023
1 parent d142164 commit 4476c90
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .dumi/theme/common/ComponentChangelog/ComponentChangelog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import React, { useMemo } from 'react';
import { createStyles } from 'antd-style';
import { HistoryOutlined } from '@ant-design/icons';
import { Button, Drawer, Timeline, Typography } from 'antd';
import Link from '../Link';
import useLocale from '../../../hooks/useLocale';
import useFetch from '../../../hooks/useFetch';

Expand All @@ -28,11 +29,13 @@ export interface ComponentChangelogProps {

const locales = {
cn: {
full: '完整更新日志',
changelog: '更新日志',
loading: '加载中...',
empty: '暂无更新',
},
en: {
full: 'Full Changelog',
changelog: 'Changelog',
loading: 'loading...',
empty: 'Nothing update',
Expand Down Expand Up @@ -165,8 +168,13 @@ export default function ComponentChangelog(props: ComponentChangelogProps) {
</Button>
<Drawer
title={locale.changelog}
extra={
<Link style={{ fontSize: 14 }} to={`/changelog${lang === 'cn' ? '-cn' : ''}`}>
{locale.full}
</Link>
}
open={show}
width={520}
width="40vw"
onClose={() => {
setShow(false);
}}
Expand Down

0 comments on commit 4476c90

Please sign in to comment.