Passage en Node 18 + correction import react
This commit is contained in:
parent
b4d5a92117
commit
82b7281125
29088
package-lock.json
generated
Normal file
29088
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -10,7 +10,7 @@
|
|||||||
"react": "^17.0.1",
|
"react": "^17.0.1",
|
||||||
"react-dom": "^17.0.1",
|
"react-dom": "^17.0.1",
|
||||||
"react-intl": "^5.10.9",
|
"react-intl": "^5.10.9",
|
||||||
"react-scripts": "4.0.1",
|
"react-scripts": "5.0.1",
|
||||||
"sass": "^1.30.0",
|
"sass": "^1.30.0",
|
||||||
"web-vitals": "^0.2.4"
|
"web-vitals": "^0.2.4"
|
||||||
},
|
},
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import './ButtonIcon.scss';
|
import './ButtonIcon.scss';
|
||||||
|
|
||||||
import React, { Component } from '../../../node_modules/react';
|
import React, { Component } from 'react';
|
||||||
|
|
||||||
|
|
||||||
export default class ButtonIcon extends Component {
|
export default class ButtonIcon extends Component {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import './ContactButton.scss';
|
import './ContactButton.scss';
|
||||||
|
|
||||||
import React, { Component } from '../../../node_modules/react';
|
import React, { Component } from 'react';
|
||||||
|
|
||||||
|
|
||||||
// import { connect } from "react-redux";
|
// import { connect } from "react-redux";
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import React, {Component} from '../../../node_modules/react';
|
import React, {Component} from 'react';
|
||||||
import { injectIntl } from 'react-intl';
|
import { injectIntl } from 'react-intl';
|
||||||
|
|
||||||
import './ContactCard.scss'
|
import './ContactCard.scss'
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import React, {Component} from '../../../node_modules/react';
|
import React, { Component } from 'react';
|
||||||
import './ExperienceCard.scss'
|
import './ExperienceCard.scss'
|
||||||
|
|
||||||
// import { connect } from "react-redux";
|
// import { connect } from "react-redux";
|
||||||
@ -13,35 +13,35 @@ export default class ExperienceCard extends Component {
|
|||||||
render() {
|
render() {
|
||||||
var data = this.props.data;
|
var data = this.props.data;
|
||||||
var imgSrc = data.logo;
|
var imgSrc = data.logo;
|
||||||
return <div class="card-content">
|
return <div class="card-content">
|
||||||
<div class="media">
|
<div class="media">
|
||||||
<div class="media-left">
|
<div class="media-left">
|
||||||
<a href={data.url} target="_blank" rel="noreferrer">
|
<a href={data.url} target="_blank" rel="noreferrer">
|
||||||
<figure class="image is-48x48">
|
<figure class="image is-48x48">
|
||||||
<img src={imgSrc} alt="Logo Entreprise"/>
|
<img src={imgSrc} alt="Logo Entreprise" />
|
||||||
</figure>
|
</figure>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="media-content">
|
<div class="media-content">
|
||||||
<p class="title is-4">{data.occupation}</p>
|
<p class="title is-4">{data.occupation}</p>
|
||||||
<p class="subtitle is-6">{data.entreprise} - {data.location} - {data.duration}</p>
|
<p class="subtitle is-6">{data.entreprise} - {data.location} - {data.duration}</p>
|
||||||
<div class="tags">
|
<div class="tags">
|
||||||
{data.tags.map(function(name, index){
|
{data.tags.map(function (name, index) {
|
||||||
return <span key={ index } class="tag">{name}</span>;
|
return <span key={index} class="tag">{name}</span>;
|
||||||
})}
|
})}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
{data.description}
|
{data.description}
|
||||||
</div>
|
</div>
|
||||||
{data.commentaire ? <div class="comment">
|
{data.commentaire ? <div class="comment">
|
||||||
{data.commentaire}
|
{data.commentaire}
|
||||||
</div> : ''}
|
</div> : ''}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// export default connect(
|
// export default connect(
|
||||||
// ({ MenuComponent }) => ({ ...MenuComponent }),
|
// ({ MenuComponent }) => ({ ...MenuComponent }),
|
||||||
// dispatch => bindActionCreators({ ...MenuComponentActions }, dispatch)
|
// dispatch => bindActionCreators({ ...MenuComponentActions }, dispatch)
|
||||||
|
@ -2,7 +2,7 @@ import './FooterCard.scss';
|
|||||||
|
|
||||||
import { injectIntl } from 'react-intl';
|
import { injectIntl } from 'react-intl';
|
||||||
|
|
||||||
import React, { Component } from '../../../node_modules/react';
|
import React, { Component } from 'react';
|
||||||
import bulmaLogo from '../../images/made-with-bulma.webp';
|
import bulmaLogo from '../../images/made-with-bulma.webp';
|
||||||
|
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@ import './MainCard.scss';
|
|||||||
|
|
||||||
import { FormattedMessage, injectIntl } from 'react-intl';
|
import { FormattedMessage, injectIntl } from 'react-intl';
|
||||||
|
|
||||||
import React, { Component } from '../../../node_modules/react';
|
import React, { Component } from 'react';
|
||||||
import headshotFond from '../../images/headshot_fond.webp';
|
import headshotFond from '../../images/headshot_fond.webp';
|
||||||
import headshotMain from '../../images/headshot_main.webp';
|
import headshotMain from '../../images/headshot_main.webp';
|
||||||
import ButtonIcon from '../ButtonIcon/index';
|
import ButtonIcon from '../ButtonIcon/index';
|
||||||
|
@ -2,7 +2,7 @@ import './MenuComponent.scss';
|
|||||||
|
|
||||||
import { FormattedMessage, injectIntl } from 'react-intl';
|
import { FormattedMessage, injectIntl } from 'react-intl';
|
||||||
|
|
||||||
import React, { Component } from '../../../node_modules/react';
|
import React, { Component } from 'react';
|
||||||
import { URL_add_parameter } from '../../services/parameters.service';
|
import { URL_add_parameter } from '../../services/parameters.service';
|
||||||
|
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@ import './ProjectsCard.scss';
|
|||||||
|
|
||||||
import { injectIntl } from 'react-intl';
|
import { injectIntl } from 'react-intl';
|
||||||
|
|
||||||
import React, { Component } from '../../../node_modules/react';
|
import React, { Component } from 'react';
|
||||||
import ProjectCard from '../ProjectCard/index';
|
import ProjectCard from '../ProjectCard/index';
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user