diff --git a/src/app/components/speakers/speakers.js b/src/app/components/speakers/speakers.js index dd23863..869d8b8 100644 --- a/src/app/components/speakers/speakers.js +++ b/src/app/components/speakers/speakers.js @@ -1,46 +1,38 @@ -import React from "react"; +import React from 'react'; import { speakersData } from "assets/data/speakers-info.js"; import "./speakers.scss"; -const Speaker = (name, title, photo) => { - return ( +const Speaker = (name, title, photo) => (
- {name -
-

{name}

-

{title}

-
+ {name +
+

{name}

+

{title}

+
- ); -}; +); -const renderSpeakers = (speakers) => { - return ( +const renderSpeakers = (speakers) => (
- {speakers.map((speaker) => - Speaker(speaker.name, speaker.title, speaker.photo), - )} + {speakers.map((speaker) => + Speaker(speaker.name, speaker.title, speaker.photo) + )}
- ); -}; +); -export default class Speakers extends React.Component { - render() { +const Speakers = () => { return ( -
-

Opening Speakers

- {renderSpeakers(speakersData.opening)} -

Closing Speakers

- {renderSpeakers(speakersData.closing)} -

Panelists

- {renderSpeakers(speakersData.panelists)} -
+
+

Opening Speakers

+ {renderSpeakers(speakersData.opening)} +

Closing Speakers

+ {renderSpeakers(speakersData.closing)} +

Panelists

+ {renderSpeakers(speakersData.panelists)} +
); - } -} -//

Keynote

-// {renderSpeakers(speakersData.keynotes)} +export default Speakers; \ No newline at end of file