Skip to content
Snippets Groups Projects
Commit c3574051 authored by Chif Gergő's avatar Chif Gergő
Browse files

Fix unused vars warnings

parent 4307d721
No related branches found
No related tags found
No related merge requests found
......@@ -89,6 +89,9 @@ export const submitVisitors = ({ id, visitors, absent }) => (
visitors,
absent,
});
if (response.data.id) {
alert('Sikeres mentés!');
}
} catch (e) {
console.log(e);
}
......
import React, { Component } from 'react';
import { Modal, Button, Form, Input, TextArea, Icon } from 'semantic-ui-react';
import { Modal, Button, Form, Input, Icon } from 'semantic-ui-react';
import { connect } from 'react-redux';
import { DateTimeInput } from 'semantic-ui-calendar-react';
import { writeEvent, eventDate, addEvent } from '../../actions/statistics'
......@@ -67,7 +67,7 @@ class AddEventForm extends Component {
label="Dátum:"
dateFormat='YYYY-MM-DD'
placeholder="Date"
value={this.state.date}
value={date}
iconPosition="left"
onChange={this.handleChange}
/>
......
......@@ -37,7 +37,6 @@ class ConfirmModal extends Component {
basic
color='red'
inverted
inverted
onClick={() => this.close()}
>
<Icon name='remove' /> No
......
......@@ -7,10 +7,6 @@ import {
Form,
Header,
Table,
Icon,
Checkbox,
Popup,
Grid,
} from 'semantic-ui-react';
import { connect } from 'react-redux';
import moment from 'moment';
......
......@@ -30,7 +30,7 @@ class TraineeTableRow extends Component {
}
render() {
const { trainee, edit, actualNote, selectedEvent, notes } = this.props;
const { trainee, edit, selectedEvent, notes } = this.props;
const isVisitor = selectedEvent.visitors.includes(trainee.id);
const isAbsent = selectedEvent.absent.includes(trainee.id);
return (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment