Gitlab needs updates. This will be performed Friday at 09:00 AM until 09:30. Working in this period can result in loss of data.

Commit e801fa0a authored by Karl Petter Aubert's avatar Karl Petter Aubert

Remove redundant file

parent 400f7946
import React from 'react';
import MediaComponent from "./MediaComponent";
import '../style/DisplayChooser.css';
export default class DisplayChooserComponent extends React.Component {
constructor(props) {
super(props);
this.combineMediaCategories = this.combineMediaCategories.bind(this);
this.state = {
text: this.props.categorySelections.textCat,
image: this.props.categorySelections.imageCat,
audio: this.props.categorySelections.audioCat,
}
}
combineMediaCategories = event => {
this.props.handler.handleCategoryChange(event.target.name, event.target.value);
// eslint-disable-next-line default-case
localStorage.setItem(event.target.name, event.target.value);
};
render() {
const categoryNames = ["Category 1", "Category 2", "Category 3"];
return (
<div className="Display-chooser-component">
<MediaComponent preChecked={this.state.text} categoryNames={categoryNames} media="text"
receiveRadios={this.combineMediaCategories}/>
<MediaComponent preChecked={this.state.image} categoryNames={categoryNames} media="image"
receiveRadios={this.combineMediaCategories}/>
<MediaComponent preChecked={this.state.audio} categoryNames={categoryNames} media="audio"
receiveRadios={this.combineMediaCategories}/>
</div>
);
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment