-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhancement: Converted offer list into its own component
Now a single offer is its own reusalble component see #7
- Loading branch information
Showing
2 changed files
with
38 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import React, { Component } from "react"; | ||
import { NavLink } from 'react-router-dom'; | ||
|
||
class Offer extends Component { | ||
render () { | ||
return ( | ||
<div class="offer"> | ||
<div class="padding-30"> | ||
<div class="mb-20"> | ||
<img src="https://via.placeholder.com/320x80" alt="" /> | ||
</div> | ||
<div class="ride-details "> | ||
<div class="width-50 ride-start mb-10"> | ||
Kkoo to Mbezi | ||
</div> | ||
<div class="width-50 ride-time text-right mb-10"> | ||
Time: 1800 hrs | ||
</div> | ||
</div> | ||
<div class="ride-offerer"> | ||
<div class="width-50 ride-start mb-10"> | ||
<span class="avatar">With: </span> Benito | ||
</div> | ||
<div class="width-50 ride-time text-right mb-10"> | ||
Rating: some stars | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
export default Offer; |