Fix home strings
This commit is contained in:
@@ -18,6 +18,15 @@ async componentDidMount(){
|
||||
this.setState({jobsDataResults:response});
|
||||
}
|
||||
|
||||
titleLen(title){
|
||||
let maxl = 58;
|
||||
title.replace('/', ' ');
|
||||
title.replace('www.', '');
|
||||
title.replace('.com', '');
|
||||
title.replace('http//', '');
|
||||
|
||||
return (title.length > maxl)? title.substring(0,maxl-2)+'...': title;
|
||||
}
|
||||
// if (jobsDataResults ()== null){
|
||||
// return null;
|
||||
// }
|
||||
@@ -57,7 +66,7 @@ async componentDidMount(){
|
||||
<div className="titleBox">
|
||||
<h3 className="title">
|
||||
<a href={dashUrl}>
|
||||
<span className='font_black'>{i.title} </span>
|
||||
<span className='font_black'>{this.titleLen(i.title)} </span>
|
||||
</a>
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user