Migrate most React class components to function components
This commit is contained in:
parent
4c9baaef80
commit
558b5a4a38
23 changed files with 1444 additions and 1775 deletions
|
@ -2,9 +2,6 @@
|
|||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import * as React from 'react';
|
||||
|
||||
import { text } from '@storybook/addon-knobs';
|
||||
|
||||
import type { Props } from './Emojify';
|
||||
import { Emojify } from './Emojify';
|
||||
|
||||
|
@ -15,7 +12,7 @@ export default {
|
|||
const createProps = (overrideProps: Partial<Props> = {}): Props => ({
|
||||
renderNonEmoji: overrideProps.renderNonEmoji,
|
||||
sizeClass: overrideProps.sizeClass,
|
||||
text: text('text', overrideProps.text || ''),
|
||||
text: overrideProps.text || '',
|
||||
});
|
||||
|
||||
export function EmojiOnly(): JSX.Element {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue