Skip to content

Commit

Permalink
Fix chat models and switch placement
Browse files Browse the repository at this point in the history
  • Loading branch information
Reckless-Satoshi committed Nov 11, 2022
1 parent df78637 commit 84997de
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 28 deletions.
11 changes: 10 additions & 1 deletion frontend/src/components/TradeBox/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
23 changes: 0 additions & 23 deletions frontend/src/models/Chat.model.ts

This file was deleted.

4 changes: 1 addition & 3 deletions frontend/src/models/Order.model.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { APIChat } from '.';

export interface TradeRobotSummary {
sent_fiat: number;
received_sats: number;
Expand Down Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion frontend/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

0 comments on commit 84997de

Please sign in to comment.