diff --git a/src/components/pages/Profile.js b/src/components/pages/Profile.js index 9c766efb93ae11a47f170770d20491979bb96cd0..5bf66151eef6d72805e49dc313b936fbe1b41ea0 100644 --- a/src/components/pages/Profile.js +++ b/src/components/pages/Profile.js @@ -1,24 +1,24 @@ -import { Container, Divider, Dropdown, Form, Segment } from 'semantic-ui-react'; -import React, { Component } from 'react'; -import { groupChange, submitRegistration, textChange } from '../../actions'; +import { Container, Divider, Dropdown, Form, Segment } from "semantic-ui-react"; +import React, { Component } from "react"; +import { groupChange, submitRegistration, textChange } from "../../actions"; -import HiddenForm from '../forms/HiddenForm'; -import { connect } from 'react-redux'; -import { getDeadline } from '../../actions/auth'; +import HiddenForm from "../forms/HiddenForm"; +import { connect } from "react-redux"; +import { getDeadline } from "../../actions/auth"; const options = [ - { key: 'DT', text: 'DevTeam', value: 'DT' }, - { key: 'NET', text: 'NETeam', value: 'NET' }, - { key: 'ST', text: 'SecurITeam', value: 'ST' }, - { key: 'SYS', text: 'SysAdmin', value: 'SYS' }, - { key: 'HAT', text: 'Hallgatói Tudásbázis', value: 'HAT' }, + { key: "DT", text: "DevTeam", value: "DT" }, + { key: "NET", text: "NETeam", value: "NET" }, + { key: "ST", text: "SecurITeam", value: "ST" }, + { key: "SYS", text: "SysAdmin", value: "SYS" }, + { key: "HAT", text: "Hallgatói Tudásbázis", value: "HAT" }, ]; class Profile extends Component { UNSAFE_componentWillMount() { this.props.getDeadline(); if (!this.props.id) { - this.props.history.push('/home'); + this.props.history.push("/home"); } } @@ -40,20 +40,20 @@ class Profile extends Component { return ( <Container style={{ - marginTop: '1em', + marginTop: "1em", }} > {canEdit ? ( <Segment inverted color="red" tertiary> <p - style={{ fontSize: '1.3em' }} + style={{ fontSize: "1.3em" }} dangerouslySetInnerHTML={{ __html: messageBefore }} /> </Segment> ) : ( <Segment inverted color="red" tertiary> <p - style={{ fontSize: '1.3em' }} + style={{ fontSize: "1.3em" }} dangerouslySetInnerHTML={{ __html: messageAfter }} /> </Segment> @@ -134,17 +134,18 @@ class Profile extends Component { </li> <br /> <li> - Két előadás közti szünetben úgy döntesz, hogy laptopoddal - az index.hu tech cikkeit fogod görgetni. Ám az oldal nem - válaszol, a hiba okát megpróbálod kideríteni. Ekkor veszed - észre, hogy az alábbiakat sem éred el: sze.hu, - corvinus.hu, startlap.hu. Ugyanakkor a Facebook, a Gmail, - a YouTube, de még az egyetemi oldalak többsége is működik. - Szerinted mi lehet a hiba oka? + Kicsit hosszúra nyúlt az előadás és lassan rohannod kell + haza, ezért úgy döntesz, hogy megnézed a menetrendet a + menetrendek.hu weboldalon. Ám az oldal nem válaszol, a + hiba okát megpróbálod kideríteni. Ekkor veszed észre, hogy + az alábbiakat sem éred el: sze.hu, corvinus.hu, + startlap.hu. Ugyanakkor a Facebook, a Gmail, a YouTube, de + még az egyetemi oldalak többsége is működik. Szerinted mi + lehet a hiba oka? </li> <br /> <li> - Találsz egy értelmetlen szöveget egy honlapon (például:{' '} + Találsz egy értelmetlen szöveget egy honlapon (például:{" "} <a href="https://ujonc.kszk.bme.hu/mediafiles/public/zebra.html"> https://ujonc.kszk.bme.hu/mediafiles/public/zebra.html </a> @@ -196,7 +197,7 @@ class Profile extends Component { </li> <br /> <li> - Találsz egy értelmetlen szöveget egy honlapon (például:{' '} + Találsz egy értelmetlen szöveget egy honlapon (például:{" "} <a href="https://ujonc.kszk.bme.hu/mediafiles/public/zebra.html"> https://ujonc.kszk.bme.hu/mediafiles/public/zebra.html </a> @@ -239,12 +240,12 @@ class Profile extends Component { } checked={signed} readOnly={!canEdit} - style={!canEdit ? { marginBottom: '5em' } : null} + style={!canEdit ? { marginBottom: "5em" } : null} /> {canEdit ? ( <Form.Button primary - style={{ marginBottom: '5em' }} + style={{ marginBottom: "5em" }} disabled={!signed} onClick={() => this.props.submitRegistration({ @@ -261,7 +262,7 @@ class Profile extends Component { Mentés </Form.Button> ) : ( - '' + "" )} </Form> </Container>