-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Credential detail view on title click
- Loading branch information
1 parent
edcf4b2
commit e9e353c
Showing
5 changed files
with
68 additions
and
76 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
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 |
---|---|---|
@@ -1,58 +1,51 @@ | ||
import React, {Card} from "react"; | ||
import React, { Card } from "react"; | ||
import "../../Sidebar.css"; | ||
import {Link } from 'react-router-dom'; | ||
import { Link } from "react-router-dom"; | ||
import Footer from "../Footer"; | ||
export default function ExNoteShow(props) { | ||
const notes = props.notes; | ||
return ( | ||
|
||
<div className="extension-container"> | ||
<div className="list-header"> | ||
<Link to="/extension/view"> | ||
<div className="extension-container"> | ||
<div className="list-header"> | ||
<Link to="/extension/view"> | ||
<span className="nav-icon nav-back"> | ||
<i className="fa fa-angle-left"></i> | ||
</span> | ||
</Link> | ||
<div className="title">Notes</div> | ||
</div> | ||
<div className="ext-content"> | ||
<div className="title"> | ||
Notes | ||
</div> | ||
<div className="content-list"> | ||
|
||
{ | ||
notes.map(item => { | ||
const { | ||
id, | ||
noteInput, | ||
noteTitle | ||
} = item; | ||
return ( | ||
<div className="item d-flex justify-content-start" key={id}> | ||
<div className="item-img"> | ||
<i className="icon-note" /> | ||
</div> | ||
<div className="item-detail"> | ||
<div className="text">{noteTitle}</div> | ||
|
||
</div> | ||
<div className="view-details"> | ||
<Link to={{ | ||
pathname: '/extension/notes/view', | ||
state: { | ||
id: id | ||
} | ||
}}><i className="icon-eye"/></Link> | ||
</div> | ||
</div> | ||
) | ||
}) | ||
</Link> | ||
<div className="title">Notes</div> | ||
</div> | ||
<div className="ext-content"> | ||
|
||
<div className="content-list"> | ||
{notes.map(item => { | ||
const { id, noteInput, noteTitle } = item; | ||
return ( | ||
<Link | ||
to={{ | ||
pathname: "/extension/notes/view", | ||
state: { | ||
id: id | ||
} | ||
</div> | ||
</div> | ||
<Footer /> | ||
}} | ||
style={{ textDecoration: "none" }} | ||
> | ||
<div className="item d-flex justify-content-start" key={id}> | ||
<div className="item-img"> | ||
<i className="icon-note" /> | ||
</div> | ||
<div className="item-detail"> | ||
<div className="text">{noteTitle}</div> | ||
</div> | ||
<div className="view-details"> | ||
<i className="icon-eye" /> | ||
</div> | ||
</div> | ||
</Link> | ||
); | ||
})} | ||
</div> | ||
</div> | ||
<Footer /> | ||
</div> | ||
); | ||
} | ||
|
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