Skip to content

Ui user calendar#83

Open
sergeyt wants to merge 6 commits intomasterfrom
UI_UserCalendar
Open

Ui user calendar#83
sergeyt wants to merge 6 commits intomasterfrom
UI_UserCalendar

Conversation

@sergeyt
Copy link
Copy Markdown
Contributor

@sergeyt sergeyt commented Oct 18, 2017

No description provided.

…ет ошибка, связанная с тем, что в одном из пропсов (modalData) не находится поля, которые используется в одном из элементов. Непонятно, как задать стартовые пропсы, если ошибка только в них.
… (error with functions in props and error with setState in element which removed from VDOM)
@sergeyt
Copy link
Copy Markdown
Contributor Author

sergeyt commented Oct 23, 2017

@DevilRigoll please fix build, see output of travis-ci job

Copy link
Copy Markdown
Contributor Author

@sergeyt sergeyt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good job, keep it up!

isSelected: boolean;
}

export default class CellCalendar extends React.Component<ICellCalendarProps, {}> {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

consider renaming to CalendarCell

switch (this.state.panelId) {
case FIRST_PANEL:
obj =
<tr >
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets use CSS flexbox instead of CSS tables

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can do that in separate PR


import './style.scss';

interface ISeasonView {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets follow the following naming SeasonViewProps, i.e. ComponentName + Props


const weekday = ['M', 'T', 'W', 'T', 'F', 'S', 'S'];
/*
export default class UserCaledarGrid extends React.Component<IUserCalandarGridProps, {}> {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets remove commented code

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

git remembers all versions anyway

}
);
return (
<table>
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets use CSS flexbox instead of tables

console.log("DBWorker calendars", calendars);

console.log("DBWorker members 0",teams[0].members);
let neededTeamId: string = "Team is not found...";
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

consider to use id of first team temporarily


const reducerUserCalendar = handleActions({
[setEnterStartDate]: (state, action) => {
console.log(action.payload);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets user redux-logger instead of console.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants