From 82838a377e2ecf1e895a1eb0c0f9f3c34de8daf2 Mon Sep 17 00:00:00 2001 From: manisha Date: Apr 09 2021 14:03:09 +0000 Subject: added BugStats component merge conflict fix --- diff --git a/src/landingpage/Blockers.js b/src/landingpage/Blockers.js index 30b923a..ef30f1b 100644 --- a/src/landingpage/Blockers.js +++ b/src/landingpage/Blockers.js @@ -1,6 +1,7 @@ import React, { Component } from "react" import { Row } from "reactstrap" import SourceLink from "./SourceLink" +import BugStats from "./common/BugStats" class Blockers extends Component { constructor(props) { @@ -17,65 +18,8 @@ class Blockers extends Component { -
- - - - - - - - - - - - - - - - - - - - - - - - -
- Beta -
Proposed Blockers{this.props.data.beta_blockers_proposed}
Accepted Blockers{this.props.data.beta_blockers}
Proposed FEs{this.props.data.beta_fe_proposed}
Accepted FEs{this.props.data.beta_fe}
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - -
- Final -
Proposed Blockers{this.props.data.final_blockers_proposed}
Accepted Blockers{this.props.data.final_blockers}
Proposed FEs{this.props.data.final_fe_proposed}
Accepted FEs{this.props.data.final_fe}
-
+ +
) diff --git a/src/landingpage/common/BugStats.js b/src/landingpage/common/BugStats.js new file mode 100644 index 0000000..938dadd --- /dev/null +++ b/src/landingpage/common/BugStats.js @@ -0,0 +1,39 @@ +import React from 'react' + +const BugStats = (props) => { + const { milestone, stats } = props; + + return ( +
+ + + + + + + + + + + + + + + + + + + + + + + + +
+ {milestone} +
Proposed Blockers{stats.blockers_proposed}
Accepted Blockers{stats.blockers}
Proposed FEs{stats.fe_proposed}
Accepted FEs{stats.fe}
+
+ ) +} + +export default BugStats