chore: update changelog link and remove obsolete changelog components (#2918)

This commit is contained in:
JimmFly
2023-06-29 18:19:26 +08:00
committed by Alex Yang
parent 76039d8d3e
commit a8dc00b406
6 changed files with 3 additions and 249 deletions

View File

@@ -56,7 +56,7 @@ export const AboutAffine = () => {
style={{ cursor: 'pointer' }}
onClick={() => {
window.open(
'https://github.com/toeverything/AFFiNE/releases',
'https://affine.pro/blog/whats-new-affine-0630',
'_blank'
);
}}

View File

@@ -1,18 +0,0 @@
import ChangeLogComponent from '@affine/component/changeLog';
import { useAtom } from 'jotai';
import { useCallback } from 'react';
import { guideChangeLogAtom } from '../../../../atoms/guide';
export const ChangeLog = () => {
const [showChangeLogTips, setShowChangeLogTips] = useAtom(guideChangeLogAtom);
const onCloseWhatsNew = useCallback(() => {
setShowChangeLogTips(false);
}, [setShowChangeLogTips]);
if (!showChangeLogTips) {
return <></>;
}
return <ChangeLogComponent onCloseWhatsNew={onCloseWhatsNew} />;
};
export default ChangeLog;