Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 06f9552

Browse files
committed
AppWarning
Signed-off-by: Šimon Brandner <[email protected]>
1 parent 949368b commit 06f9552

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed
Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22

33
interface IProps {
4-
errorMsg: string;
4+
errorMsg?: string;
55
}
66

77
const AppWarning: React.FC<IProps> = (props) => {
@@ -11,14 +11,10 @@ const AppWarning: React.FC<IProps> = (props) => {
1111
<img src={require("../../../../res/img/warning.svg")} alt='' />
1212
</div>
1313
<div className='mx_AppPermissionWarningText'>
14-
<span className='mx_AppPermissionWarningTextLabel'>{ props.errorMsg }</span>
14+
<span className='mx_AppPermissionWarningTextLabel'>{ props.errorMsg || "Error" }</span>
1515
</div>
1616
</div>
1717
);
1818
};
1919

20-
AppWarning.defaultProps = {
21-
errorMsg: 'Error',
22-
};
23-
2420
export default AppWarning;

0 commit comments

Comments
 (0)