Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Commit

Permalink
[MM-20480] Migrate new_message_separator and its tests to typescript (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
abdusabri authored and jfrerich committed Oct 23, 2020
1 parent e55046e commit 1a6896c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import {shallow} from 'enzyme';
import React from 'react';

import NewMessageSeparator from './new_message_separator.jsx';
import NewMessageSeparator from './new_message_separator';

describe('components/post_view/new_message_separator', () => {
test('should render new_message_separator', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.

import PropTypes from 'prop-types';
import React from 'react';
import {FormattedMessage} from 'react-intl';

import NotificationSeparator from 'components/widgets/separator/notification-separator';

export default class NewMessageSeparator extends React.PureComponent {
static propTypes = {
separatorId: PropTypes.string.isRequired,
}
type Props = {
separatorId: string;
}

render() {
export default class NewMessageSeparator extends React.PureComponent<Props> {
render(): JSX.Element {
return (
<div className='new-separator'>
<NotificationSeparator id={this.props.separatorId}>
Expand Down

0 comments on commit 1a6896c

Please sign in to comment.