-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix. Settings. React components are translate-ready now. (#426)
* Fix. Settings. React components refactored to the functional-based components. * Fix. Settings. React components is translate-ready now. * Fix. Code. React bundle rebuild.
- Loading branch information
Showing
7 changed files
with
595 additions
and
298 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
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,50 +1,48 @@ | ||
import React from 'react'; | ||
import {useI18n} from '@wordpress/react-i18n'; | ||
|
||
class SpbctAboutCT extends React.Component{ | ||
constructor(props) { | ||
super(props); | ||
this.state = {date: new Date()}; | ||
} | ||
export function SpbctAboutCT(props) { | ||
|
||
render() { | ||
const data = this.props.data; | ||
return ( | ||
<div className="spbc_page_header_info__about_block"> | ||
<label htmlFor="spbc_page_header_about_block" className="spbc_page_header_info__block_label">About CleanTalk</label> | ||
<div id="spbc_page_header_about_block" className="spbc_page_header_info__block_body" | ||
style={{height: "100%"}}> | ||
<div className="spbc_page_header_info__about_block__divider"> | ||
<div className="spbc_page_header_info__block_row" | ||
dangerouslySetInnerHTML={{__html: data.supportLink}}></div> | ||
<div className="spbc_page_header_info__block_row" | ||
dangerouslySetInnerHTML={{__html: data.homepage}}> | ||
</div> | ||
<div className="spbc_page_header_info__block_row" | ||
dangerouslySetInnerHTML={{__html: data.malwareCleaning}}> | ||
</div> | ||
<div className="spbc_page_header_info__block_row" | ||
dangerouslySetInnerHTML={{__html: data.gdprComplianceLink}}> | ||
</div> | ||
const {__} = useI18n(); | ||
|
||
// @ToDO Need to set state 'data'? | ||
//this.state = {date: new Date()}; | ||
const data = props.data; | ||
|
||
return ( | ||
<div className="spbc_page_header_info__about_block"> | ||
<label htmlFor="spbc_page_header_about_block" className="spbc_page_header_info__block_label">{__('About CleanTalk', 'security-malware-firewall')}</label> | ||
<div id="spbc_page_header_about_block" className="spbc_page_header_info__block_body" | ||
style={{height: "100%"}}> | ||
<div className="spbc_page_header_info__about_block__divider"> | ||
<div className="spbc_page_header_info__block_row" | ||
dangerouslySetInnerHTML={{__html: data.supportLink}}></div> | ||
<div className="spbc_page_header_info__block_row" | ||
dangerouslySetInnerHTML={{__html: data.homepage}}> | ||
</div> | ||
<div className="spbc_page_header_info__block_row" | ||
dangerouslySetInnerHTML={{__html: data.malwareCleaning}}> | ||
</div> | ||
<div className="spbc_page_header_info__block_row" | ||
dangerouslySetInnerHTML={{__html: data.gdprComplianceLink}}> | ||
</div> | ||
<div className="spbc_page_header_info__about_block__divider"> | ||
<div className="spbc_page_header_info__block_row" | ||
dangerouslySetInnerHTML={{__html: data.trademark}}> | ||
</div> | ||
</div> | ||
<div className="spbc_page_header_info__about_block__divider"> | ||
<div className="spbc_page_header_info__block_row" | ||
dangerouslySetInnerHTML={{__html: data.trademark}}> | ||
</div> | ||
<div className="spbc_page_header_info__about_block__divider"> | ||
<div className="spbc_page_header_info__block_row" | ||
dangerouslySetInnerHTML={{__html: data.feedback}}> | ||
</div> | ||
</div> | ||
<div className="spbc_page_header_info__about_block__divider"> | ||
<div className="spbc_page_header_info__block_row" | ||
dangerouslySetInnerHTML={{__html: data.feedback}}> | ||
</div> | ||
<div className="spbc_page_header_info__about_block__divider"> | ||
<div className="spbc_page_header_info__block_row" | ||
dangerouslySetInnerHTML={{__html: data.premium}}> | ||
</div> | ||
</div> | ||
<div className="spbc_page_header_info__about_block__divider"> | ||
<div className="spbc_page_header_info__block_row" | ||
dangerouslySetInnerHTML={{__html: data.premium}}> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
export default SpbctAboutCT; | ||
</div> | ||
); | ||
} |
Oops, something went wrong.