Release notes for v5.26

This commit is contained in:
Josh Perez 2021-12-02 11:51:04 -05:00 committed by GitHub
parent 48b3c655e8
commit 4701aeb79e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 33 additions and 3 deletions

View 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()} />);

View file

@ -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,
})),
};