mirror of
https://github.com/RoboSats/robosats.git
synced 2024-12-13 19:06:26 +00:00
Fix chat models and switch placement
This commit is contained in:
parent
df786376ac
commit
84997de94f
@ -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'
|
||||
|
@ -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;
|
@ -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;
|
||||
|
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user