Skip to content

Commit

Permalink
Merge pull request #38 from RaeNon/develop
Browse files Browse the repository at this point in the history
LANG_003a & LANG_004 Hotfix, classNames and next/link import
  • Loading branch information
Edmondnrecaj authored Apr 29, 2020
2 parents 7dc2ff5 + 97a2fc4 commit 8da8c03
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 19 deletions.
2 changes: 1 addition & 1 deletion client/pages/edit_vocabulary.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import InputGroup from 'react-bootstrap/InputGroup';
import FormControl from 'react-bootstrap/FormControl';
import { Form } from 'react-bootstrap';
import Button from 'react-bootstrap/Button';
import Link from 'next/Link';
import Link from 'next/link';

class EditVocabulary extends React.Component {
constructor(props) {
Expand Down
16 changes: 2 additions & 14 deletions client/pages/study_interface/DE.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ import { Container, Button, useRouter, Link, List } from "next/app";
import { DropdownButton, Dropdown } from "react-bootstrap";

class StudyInterface extends React.Component {
/* constructor(props) {
super(props);
}
*/
constructor() {
super();
this.state = {
Expand Down Expand Up @@ -51,11 +47,11 @@ class StudyInterface extends React.Component {
<td>{element.translations.DE}</td>
<td>
<Container>
EN:<div class="overlay" id={id}>
EN:<div className="overlay" id={id}>
{element.translations.EN}
</div>
<br/>
FR:<div class="overlay" id={id}>
FR:<div className="overlay" id={id}>
{element.translations.FR}
</div>
</Container>
Expand All @@ -74,14 +70,6 @@ class StudyInterface extends React.Component {
);
}
}
/*
StudyInterface.getInitialProps = async function () {
const res = await fetch('http://localhost:8080/api/vocabulary')
const data = await res.json()
return {
vocabs: data.vocabulary
}
}*/

export default StudyInterface;

4 changes: 2 additions & 2 deletions client/pages/study_interface/EN.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ class StudyInterface extends React.Component {
<td>{element.translations.EN}</td>
<td>
<Container>
DE:<div class="overlay" id={id}>
DE:<div className="overlay" id={id}>
{element.translations.DE}
</div>
<br/>
FR:<div class="overlay" id={id}>
FR:<div className="overlay" id={id}>
{element.translations.FR}
</div>
</Container>
Expand Down
4 changes: 2 additions & 2 deletions client/pages/study_interface/FR.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ class StudyInterface extends React.Component {
<td>{element.translations.FR}</td>
<td>
<Container>
DE:<div class="overlay" id={id}>
DE:<div className="overlay" id={id}>
{element.translations.DE}
</div>
<br/>
EN:<div class="overlay" id={id}>
EN:<div className="overlay" id={id}>
{element.translations.EN}
</div>
</Container>
Expand Down

0 comments on commit 8da8c03

Please sign in to comment.