-
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.
Componetizado el módulo de noticias. Arreglados la mayoría de warnings
- Loading branch information
Showing
7 changed files
with
89 additions
and
51 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
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,35 @@ | ||
import React from 'react' | ||
|
||
interface IMainButtonProps { | ||
title: string, | ||
link: string, | ||
icon: string, | ||
|
||
|
||
|
||
} | ||
|
||
interface IMainButtonState { | ||
title: string, | ||
link: string, | ||
icon: string, | ||
|
||
} | ||
|
||
class MainButton extends React.Component<IMainButtonProps, IMainButtonState> { | ||
constructor(props: IMainButtonProps){ | ||
super(props); | ||
this.state = {icon: this.props.icon, title: this.props.title, link: this.props.link} | ||
} | ||
|
||
public render() { | ||
return ( | ||
<div className="moduletable"> | ||
<div className="custom"> | ||
<p id="fav-download-btn"><a className="btn btn-primary btn-info" href={this.state.link} target="_blank noopener"><i className={this.state.icon} />{this.state.title}</a></p> | ||
</div> | ||
</div> | ||
); | ||
} | ||
} | ||
export default MainButton; |
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
Oops, something went wrong.