Release notes for v5.26
This commit is contained in:
parent
48b3c655e8
commit
4701aeb79e
3 changed files with 33 additions and 3 deletions
22
ts/components/WhatsNewModal.stories.tsx
Normal file
22
ts/components/WhatsNewModal.stories.tsx
Normal file
|
@ -0,0 +1,22 @@
|
|||
// Copyright 2021 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import React from 'react';
|
||||
import { storiesOf } from '@storybook/react';
|
||||
import { action } from '@storybook/addon-actions';
|
||||
|
||||
import type { PropsType } from './WhatsNewModal';
|
||||
import { WhatsNewModal } from './WhatsNewModal';
|
||||
import enMessages from '../../_locales/en/messages.json';
|
||||
import { setupI18n } from '../util/setupI18n';
|
||||
|
||||
const i18n = setupI18n('en', enMessages);
|
||||
|
||||
const story = storiesOf('Components/WhatsNewModal', module);
|
||||
|
||||
const getDefaultProps = (): PropsType => ({
|
||||
hideWhatsNewModal: action('hideWhatsNewModal'),
|
||||
i18n,
|
||||
});
|
||||
|
||||
story.add('Modal', () => <WhatsNewModal {...getDefaultProps()} />);
|
|
@ -28,9 +28,9 @@ const renderText: RenderTextCallbackType = ({ key, text }) => (
|
|||
|
||||
const releaseNotes: ReleaseNotesType = {
|
||||
date: new Date(window.getBuildCreation?.() || Date.now()),
|
||||
version: window.getVersion(),
|
||||
features: [1].map(n => ({
|
||||
key: `WhatsNew__v5.25--${n}`,
|
||||
version: window.getVersion?.(),
|
||||
features: [1, 2].map(n => ({
|
||||
key: `WhatsNew__v5.26--${n}`,
|
||||
components: undefined,
|
||||
})),
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue