-
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.
- Loading branch information
1 parent
0bc52a8
commit f2833f1
Showing
5 changed files
with
66 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import React from 'react' | ||
import tt from 'counterpart' | ||
|
||
class WebClients extends React.Component { | ||
static propTypes = { | ||
} | ||
|
||
state = { | ||
} | ||
|
||
render() { | ||
const { web_clients } = this.props | ||
|
||
let appList | ||
const webs = Object.entries(web_clients || {}) | ||
if (webs.length) { | ||
appList = [] | ||
for (const [en, data] of webs) { | ||
if (en === '_desktop') continue | ||
const { img, ru, url } = data | ||
appList.push(<a href={url} target='_blank' rel='noopener noreferrer'> | ||
<img src={img} /> | ||
{ru} | ||
</a>) | ||
} | ||
|
||
let desktop | ||
const { _desktop } = web_clients | ||
if (_desktop) { | ||
desktop = <div> | ||
{tt('web_clients_jx.or_desktop')} | ||
<a href='#'>{tt('web_clients_jx.or_desktop_link')}</a> | ||
{tt('web_clients_jx.or_desktop2')} | ||
</div> | ||
} | ||
|
||
appList = <React.Fragment> | ||
<h3>{tt('web_clients_jx.title')}</h3> | ||
{appList} | ||
{desktop} | ||
<hr/> | ||
</React.Fragment> | ||
} | ||
return appList | ||
} | ||
} | ||
|
||
export default WebClients |
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