remove comments

This commit is contained in:
Abderahman88 2020-10-21 22:05:15 +01:00
parent c576451685
commit ed784cc129
2 changed files with 6 additions and 31 deletions

View File

@ -3,7 +3,6 @@ import { css } from 'office-ui-fabric-react';
import PropTypes from 'prop-types';
import { View, Views, Navigate, Messages } from "react-big-calendar";
import * as strings from 'CalendarWebPartStrings';
//require('./calendar.css');
export interface ICustomToolbarProps {
date: Date;
@ -44,33 +43,13 @@ export default class CalendarToolbar extends React.Component<ICustomToolbarProps
this.setState({activeView: view});
}
/*private viewNamesGroup = (messages) => {
let viewNames = this.props.views
const view = this.props.view
if (viewNames.length > 1) {
return viewNames.map(name => (
<button
type="button"
key={name}
className={css({ 'rbc-active': view === name })}
onClick={this.view.bind(null, name)}
>
{messages[name]}
</button>
))
}
}*/
public render() {
const {activeView} = this.state;
return (
<div className="rbc-toolbar">
<div className="rbc-btn-group">
{/*<button type="button" onClick={() => this.navigate('TODAY')}>{strings.todayLabel}</button>*/}
<button type="button" onClick={() => this.navigate('TODAY')}>VANDAAGHAHA</button>
<button type="button" onClick={() => this.navigate('TODAY')}>{strings.todayLabel}</button>
<button type="button" onClick={() => this.navigate('PREV')}>{strings.previousLabel}</button>
<button type="button" onClick={() => this.navigate('NEXT')}>{strings.nextLabel}</button>
</div>
@ -79,11 +58,9 @@ export default class CalendarToolbar extends React.Component<ICustomToolbarProps
<button type="button" className={css({ 'rbc-active': activeView === "month" })} onClick={() => this.view('month')}>{strings.monthLabel}</button>
<button type="button" className={css({ 'rbc-active': activeView === "week" })} onClick={() => this.view('week')}>{strings.weekLabel}</button>
<button type="button" className={css({ 'rbc-active': activeView === "day" })} onClick={() => this.view('day')}>{strings.dayLable}</button>
<button type="button" className={css({ 'rbc-active': activeView === "year" })} onClick={() => this.view('year')}>{"YEAR"}</button>
<button type="button" className={css({ 'rbc-active': activeView === "year" })} onClick={() => this.view('year')}>{strings.yearHeaderLabel}</button>
<button type="button" className={css({ 'rbc-active': activeView === "agenda" })} onClick={() => this.view('agenda')}>{strings.agenda}</button>
</div>
{/*<span className="rbc-btn-group">{this.viewNamesGroup(this.props.localizer.messages)}</span>*/}
</div>
);
}

View File

@ -10,11 +10,10 @@ export default class CalendarToolbar extends Toolbar {
}
render() {
£ return (
return (
<div>
<div className="rbc-btn-group">
{/*<button type="button" onClick={() => this.navigate('TODAY')}>{strings.todayLabel}</button>*/}
<button type="button" onClick={() => this.navigate('TODAY')}>VANDAAGHAHA</button>
<button type="button" onClick={() => this.navigate('TODAY')}>{strings.todayLabel}</button>
<button type="button" onClick={() => this.navigate('PREV')}>{strings.previousLabel}</button>
<button type="button" onClick={() => this.navigate('NEXT')}>{strings.nextLabel}</button>
</div>
@ -23,11 +22,10 @@ export default class CalendarToolbar extends Toolbar {
<button type="button" onClick={this.view.bind(null, 'month')}>{strings.monthLabel}</button>
<button type="button" onClick={this.view.bind(null, 'week')}>{strings.weekLabel}</button>
<button type="button" onClick={this.view.bind(null, 'day')}>{strings.dayLable}</button>
<button type="button" onClick={this.view.bind(null, 'year')}>{"YEAR"}</button>
<button type="button" onClick={this.view.bind(null, 'year')}>{strings.yearHeaderlabel}</button>
<button type="button" onClick={this.view.bind(null, 'agenda')}>{strings.agenda}</button>
</div>
</div>
);
}
}
//module.export = CalendarToolbar;