-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Andrei Stepanov <[email protected]>
- Loading branch information
1 parent
567362c
commit 502e6c9
Showing
4 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* This file is part of ciboard | ||
* Copyright (c) 2021, 2022, 2023 Andrei Stepanov <[email protected]> | ||
* Copyright (c) 2021, 2022, 2023, 2024 Andrei Stepanov <[email protected]> | ||
* | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU Lesser General Public | ||
|
@@ -158,6 +158,16 @@ export const getMessageError = (brokerMsgBody: BrokerSchemaMsgBody) => { | |
} | ||
}; | ||
|
||
export const getMsgTestNote = (brokerMsgBody: BrokerSchemaMsgBody) => { | ||
let note: string | undefined; | ||
if (MSG_V_0_1.isMsg(brokerMsgBody)) { | ||
note = brokerMsgBody.note; | ||
} else if (MSG_V_1.isMsg(brokerMsgBody)) { | ||
note = brokerMsgBody.test.note; | ||
} | ||
return note; | ||
}; | ||
|
||
export interface IconProps { | ||
className: string; | ||
icon: React.ComponentClass<SVGIconProps, any>; | ||
|