Fix chat models and switch placement

This commit is contained in:
Reckless_Satoshi 2022-11-11 07:45:18 -08:00
parent df786376ac
commit 84997de94f
No known key found for this signature in database
GPG Key ID: 9C4585B561315571
4 changed files with 11 additions and 28 deletions

View File

@ -1434,7 +1434,16 @@ class TradeBox extends Component {
{/* Make confirmation sound for Chat Open. */}
{this.Sound('locked-invoice')}
<Grid item xs={12} align='center'>
<div style={{ position: 'fixed', right: '-4em', top: '2.5em' }}>
<div
style={{
display: 'flex',
justifyContent: 'flex-end',
position: 'relative',
right: '0em',
top: '0em',
height: '0em',
}}
>
<Tooltip
enterTouchDelay={0}
placement='top'

View File

@ -1,23 +0,0 @@
export interface WebSocketsChatMessage {
userNick: string;
validSignature: boolean;
plainTextMessage: string;
encryptedMessage: string;
time: Date;
index: number;
}
export interface APIChatMessage {
nick: string;
time: Date;
message: string;
index: number;
}
export interface APIChat {
peer_pubkey: string;
peer_connected: boolean;
messages: APIChatMessage[];
}
export default APIChat;

View File

@ -1,5 +1,3 @@
import { APIChat } from '.';
export interface TradeRobotSummary {
sent_fiat: number;
received_sats: number;
@ -85,7 +83,7 @@ export interface Order {
trade_fee_percent: number;
bond_size_sats: number;
bond_size_percent: number;
chat: APIChat;
chat_last_index: number;
maker_summary: TradeRobotSummary;
taker_summary: TradeRobotSummary;
platform_summary: TradeCoordinatorSummary;

View File

@ -12,7 +12,6 @@ export type { Info } from './Info.model';
export type { Language } from './Settings.model';
export type { Favorites } from './Favorites.model';
export type { Coordinator } from './Coordinator.model';
export type { APIChat, WebSocketsChatMessage, APIChatMessage } from './Chat.model';
export { defaultMaker } from './Maker.model';
export { defaultInfo } from './Info.model';