-
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.
Finalización de refactorización de página
- Loading branch information
Showing
9 changed files
with
757 additions
and
54 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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { Action } from 'redux'; | ||
|
||
export enum MenuComisionesActions { | ||
COLLAPSE = 'COLLAPSE', | ||
TITLE = 'TITLE', | ||
FUNCIONES = 'FUNCIONES', | ||
PARRAFO = 'PARRAFO', | ||
APROBACION = 'APROBACION', | ||
MIEMBROS = 'MIEMBROS', | ||
EVENTOS = 'EVENTOS' | ||
} | ||
export interface IMenuComisionesAction extends Action { | ||
payload: boolean; | ||
} | ||
export interface IMenuComisionesTitleAction extends Action { | ||
payload: string; | ||
} | ||
export interface IMenuComisionesFuncionesAction extends Action { | ||
payload: String[]; | ||
} | ||
|
||
|
||
export interface IMenuComisionesParrafoAction extends Action { | ||
payload: string; | ||
} | ||
export interface IMenuComisionesAprobacionAction extends Action { | ||
payload: string; | ||
} | ||
export interface IMenuComisionesMiembrosAction extends Action { | ||
payload: String[]; | ||
} | ||
export interface IMenuComisionesEventosAction extends Action { | ||
payload: String[]; | ||
} |
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,95 @@ | ||
import React from 'react'; | ||
import Social from '../components/Social'; | ||
|
||
interface IIndividualDetailsProps { | ||
collapsed: boolean; | ||
title: string; | ||
events: Array<String>; | ||
funciones: Array<String>; | ||
parrafo: string; | ||
aprobacion: string; | ||
miembros: Array<String>; | ||
} | ||
|
||
class IndividualDetails extends React.Component<IIndividualDetailsProps, {}> { | ||
constructor(props: IIndividualDetailsProps) { | ||
super(props); | ||
|
||
} | ||
public render() { | ||
const listfuncione = this.props.funciones.map((funcione) => | ||
<li>{funcione}</li> | ||
) | ||
const listMiembros = this.props.miembros.slice(1, this.props.miembros.length - 1).map((member) => | ||
|
||
<div> | ||
{member}<br /> | ||
</div> | ||
|
||
|
||
|
||
) | ||
const listEvent = this.props.events.map((event) => | ||
|
||
|
||
<div > | ||
<div className="clr"></div> | ||
<div className="contenido-65"><a >{event}</a></div> | ||
</div> | ||
|
||
) | ||
return ( | ||
<div> | ||
{!!!this.props.collapsed ? | ||
<div> | ||
<div className="page-header"> | ||
<h2 > {this.props.title} </h2> | ||
</div> | ||
<div> | ||
<Social></Social> | ||
</div> | ||
<div style={{ clear: 'both' }}> | ||
<p>{this.props.parrafo}</p> | ||
<ul> | ||
{listfuncione} | ||
</ul> | ||
|
||
<div className="colum_97"> | ||
<div className="bubble-dir"> | ||
<p><b>Miembros de la Comisión</b><br />{this.props.aprobacion}</p> | ||
<div className="linea"> | ||
|
||
|
||
<blockquote> | ||
<b> {this.props.miembros[0]}</b><br /> | ||
{listMiembros} | ||
|
||
</blockquote> | ||
</div> | ||
</div> | ||
</div> | ||
<div className="colum_97"> | ||
<div className="bubble-dir"> | ||
<p><b>Convocatorias y Acuerdos</b> | ||
</p> | ||
|
||
|
||
<div className="linea"> | ||
<blockquote> | ||
{listEvent} | ||
</blockquote> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<p></p> | ||
</div> | ||
</div> | ||
: null} | ||
</div> | ||
|
||
) | ||
}; | ||
} | ||
|
||
export default IndividualDetails; |
Oops, something went wrong.