From 71f3445226b00c68bb98e4b5bc00301b474b0189 Mon Sep 17 00:00:00 2001 From: GitHub Actions Bot powered by AIPR Date: Sat, 30 Dec 2023 19:37:14 +0000 Subject: [PATCH] [create-pull-request] automated change --- frontend/src/components/welcome/welcome.js | 486 ++++++++++----------- 1 file changed, 235 insertions(+), 251 deletions(-) diff --git a/frontend/src/components/welcome/welcome.js b/frontend/src/components/welcome/welcome.js index 87eeb5ac1..f46e7f8e3 100644 --- a/frontend/src/components/welcome/welcome.js +++ b/frontend/src/components/welcome/welcome.js @@ -1,6 +1,6 @@ -import React, { Component } from 'react' -import PropTypes from 'prop-types' -import 'typeface-roboto' +import React from "react"; +import PropTypes from "prop-types"; +import "typeface-roboto"; import { withStyles, Grid, @@ -10,276 +10,260 @@ import { ListItemText, ListItemIcon, Avatar, - Container -} from '@material-ui/core' - -import { - AccountBalanceWallet, - Work, - Apps, - Assignment, - GroupWork -} from '@material-ui/icons' - -import './mailchimp.css' - -import { injectIntl, FormattedMessage } from 'react-intl' - -import TopBarContainer from '../../containers/topbar' -import Bottom from '../../components/bottom/bottom' -import messages from './messages' -import mainStyles from '../styles/style' - -const freelancerImage = require('../../images/collections/collection-flat-community.svg') -const companiesImage = require('../../images/collections/collection-flat-companies.svg') -const teamImage = require('../../images/welcome-teamwork.png') + Container, +} from "@material-ui/core"; +import { AccountBalanceWallet, Work, Apps, Assignment, GroupWork } from "@material-ui/icons"; +import "./mailchimp.css"; +import { injectIntl, FormattedMessage } from "react-intl"; +import TopBarContainer from "../../containers/topbar"; +import Bottom from "../../components/bottom/bottom"; +import messages from "./messages"; +import mainStyles from "../styles/style"; +const freelancerImage = require('../../images/collections/collection-flat-community.svg'); +const companiesImage = require('../../images/collections/collection-flat-companies.svg'); +const teamImage = require('../../images/welcome-teamwork.png'); import { MainTitle, MainList, ResponsiveImage, Section -} from './components/CommonStyles' +} from './components/CommonStyles'; -const styles = theme => mainStyles(theme) +const styles = theme => mainStyles(theme); -class Welcome extends Component { - constructor (props) { - super(props) +const Welcome = () => { + const [value, setValue] = React.useState(0); - this.state = { - value: 0 - } - } + React.useEffect(() => { + // componentDidMount() equivalent + }, []); - componentDidMount () { + React.useEffect(() => { + // componentWillUnmount() equivalent + return () => { + // Clean up code + }; + }, []); - } + const { classes } = props; - componentWillUnmount () { - - } - - render () { - const { classes } = this.props - - return ( -
- - -
- - - - - + + +
+ + + + + + + + + + + + + + + + - - - - - - - - - - - - + - - - - - - - - + + + + + + + + - - - - - - - - - - - - - - - -
-
-
- - - - - - + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + - +
+ +
-
- - - - - + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + -
+
- -
- ) - } -} + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + ); +}; Welcome.propTypes = { - classes: PropTypes.object.isRequired -} + classes: PropTypes.object.isRequired, +}; -export default injectIntl(withStyles(styles)(Welcome)) +export default injectIntl(withStyles(styles)(Welcome));