Skip to content

Commit

Permalink
Credential detail view on title click
Browse files Browse the repository at this point in the history
  • Loading branch information
illusioncoder7 committed Jan 30, 2020
1 parent edcf4b2 commit e9e353c
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 76 deletions.
2 changes: 1 addition & 1 deletion src/components/CryptoForms/Ethereum.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ export default function Ethereum(props) {
onClick={() => setPrivateVisible(!privateVisible)}
>
{privateVisible ? (
<i class="fa fa-eye-slash" aria-hidden="true" />
<i className="fa fa-eye-slash" aria-hidden="true" />
) : (
<i className="fa fa-eye" aria-hidden="true" />
)}
Expand Down
15 changes: 9 additions & 6 deletions src/components/Extension/List Views/ExtCryptoShow.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,13 @@ function ExtCryptoShow(props) {
{filteredItems.map(item => {
const { id, walletName, timeStamp } = item;
return (
<Link to={{
pathname: '/extension/crypto/view',
state: {
id: id
}
}}
style={{textDecoration:"none"}}>
<div className="item d-flex justify-content-start position-relative" key={id}>
<div className="item-img">
<img src={`/images/${type.label}-small.svg`} />
Expand All @@ -79,14 +86,10 @@ function ExtCryptoShow(props) {
</div>
{/* btn to view */}
<div className="view-details">
<Link to={{
pathname: '/extension/crypto/view',
state: {
id: id
}
}}><i className="icon-eye"/></Link>
<i className="icon-eye"/>
</div>
</div>
</Link>
);
})}
</div>
Expand Down
85 changes: 39 additions & 46 deletions src/components/Extension/List Views/ExtNoteShow.js
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>
);
}

40 changes: 18 additions & 22 deletions src/components/Extension/List Views/ExtPwShow.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,20 @@ export default function ExPwShow(props) {
<div className="title">Passwords</div>
</div>
<div className="ext-content">
<div className="title">
Password
</div>

<div className="content-list">

{
passwords.map(item => {
const {
id,
domainName,
domainAddress
} = item;
return (
{passwords.map(item => {
const { id, domainName, domainAddress } = item;
return (
<Link
to={{
pathname: "/extension/password/view",
state: {
id: id
}
}}
style={{ textDecoration: "none" }}
>
<div className="item d-flex justify-content-start" key={id}>
<div className="item-img">
<i className="icon-password" />
Expand All @@ -38,17 +39,12 @@ export default function ExPwShow(props) {
<div className="sub-text">{domainAddress}</div>
</div>
<div className="view-details">
<Link to={{
pathname: '/extension/password/view',
state: {
id: id
}
}}><i className="icon-eye"/></Link>
</div>
<i className="icon-eye" />
</div>
</div>
)
})
}
</Link>
);
})}
</div>
</div>
<Footer />
Expand Down
2 changes: 1 addition & 1 deletion src/components/Extension/List Views/Extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default function Extension(props) {
>
<div className="link-item note">
<i className="icon-note" />
<span className="nav-title">Note</span>
<span className="nav-title">Notes</span>

<span className="nav-icon nav-right-angle">
<i className="fa fa-angle-right"></i>
Expand Down

0 comments on commit e9e353c

Please sign in to comment.