-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Private groups, Mobile app - fixes (still WIP...)
- Loading branch information
1 parent
5843c86
commit aef0353
Showing
10 changed files
with
180 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,7 @@ | |
} | ||
|
||
.conversation-info { | ||
width: 100%; | ||
max-width: 98%; | ||
} | ||
|
||
.conversation-snippet { | ||
|
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
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import React from 'react' | ||
|
||
import tt from 'counterpart' | ||
|
||
class RenderError extends React.Component { | ||
refreshIt = () => { | ||
if (window.location.pathname === '/') { | ||
window.location.reload() | ||
return | ||
} | ||
window.location.href = '/' | ||
} | ||
|
||
render() { | ||
const { error } = this.props | ||
const refreshBtn = <button className='button' onClick={this.refreshIt}>{tt('g.refresh')}</button> | ||
const { errStr, infoStr } = error | ||
return <div style={{padding: '1rem'}}> | ||
<h4>{tt('fatal_error_jsx.render_error')}</h4><br/> | ||
{refreshBtn}<br/> | ||
<b>{errStr}</b><br/> | ||
<pre>{infoStr}</pre><br/> | ||
{refreshBtn} | ||
</div> | ||
} | ||
} | ||
|
||
export default RenderError |