Skip to content

Commit 345fe29

Browse files
authored
fix invalide tag error (#261)
1 parent e4f270b commit 345fe29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/FormattedMessage/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { createElement, isValidElement } from 'react';
22
import PropTypes from 'prop-types';
33
import format from 'format-message';
44

5-
export default function FormattedMessage({ message, values, tagName = 'span' }) {
5+
export default function FormattedMessage({ message, values, tagName }) {
66
const uid = Math.floor(Math.random() * 0x10000000000).toString(16);
77
const hashedParams = {};
88
const elements = {};
@@ -31,5 +31,5 @@ FormattedMessage.propTypes = {
3131
};
3232
FormattedMessage.defaultProps = {
3333
values: undefined,
34-
tagName: '',
34+
tagName: 'span',
3535
};

0 commit comments

Comments
 (0)