-
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.
Configure prettier and Prettify code
- Loading branch information
Showing
57 changed files
with
1,284 additions
and
1,399 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package.json | ||
yarn.lock | ||
dist | ||
build |
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,6 @@ | ||
{ | ||
"semi": true, | ||
"printWidth": 100, | ||
"singleQuote": true, | ||
"trailingComma": "all" | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,9 +1,7 @@ | ||
import React from "react"; | ||
import React from 'react'; | ||
import AppRouter from './components/AppRouter.js'; | ||
import './styles/icons.css'; | ||
|
||
export default function App() { | ||
return ( | ||
<AppRouter/> | ||
); | ||
return <AppRouter />; | ||
} |
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,11 +1,11 @@ | ||
import React from "react"; | ||
import React from 'react'; | ||
import './index.css'; | ||
|
||
export default function AddNewCard({ formType, onClick}) { | ||
export default function AddNewCard({ formType, onClick }) { | ||
return ( | ||
<div className="new-card" onClick={() => onClick(formType)}> | ||
<div className="new-card-icon">+</div> | ||
<div className="title">Add New</div> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
import React from "react"; | ||
import React from 'react'; | ||
import './index.css'; | ||
|
||
export default function NotesCard({credential, onClick, onDeleteClick}) { | ||
export default function NotesCard({ credential, onClick, onDeleteClick }) { | ||
const { noteTitle } = credential; | ||
return ( | ||
<div className="notes-box"> | ||
<div className="action-btn view-btn" onClick={() => onClick(credential)} ><i className="icon-eye"/></div> | ||
<div className="action-btn delete-btn" onClick={() => onDeleteClick(credential)}><i className="icon-delete"/></div> | ||
<div className="action-btn view-btn" onClick={() => onClick(credential)}> | ||
<i className="icon-eye" /> | ||
</div> | ||
<div className="action-btn delete-btn" onClick={() => onDeleteClick(credential)}> | ||
<i className="icon-delete" /> | ||
</div> | ||
<div className="note-img"> | ||
<i className="icon-note" /> | ||
</div> | ||
<div className="title"> | ||
{noteTitle} | ||
</div> | ||
<div className="title">{noteTitle}</div> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,25 @@ | ||
import React from "react"; | ||
import React from 'react'; | ||
import './index.css'; | ||
import { getFormattedTime } from '../../helper'; | ||
|
||
export default function PasswordsCard({credential, onClick, onDeleteClick}) { | ||
export default function PasswordsCard({ credential, onClick, onDeleteClick }) { | ||
const { domainName, timeStamp } = credential; | ||
return ( | ||
<div className="wallet-box password-box"> | ||
<div className="action-btn view-btn" onClick={() => onClick(credential)}><i className="icon-eye"/></div> | ||
<div className="action-btn delete-btn" onClick={() => onDeleteClick(credential)}><i className="icon-delete"/></div> | ||
<div className="top-img"> | ||
<img src='/images/password.svg' /> | ||
<div className="action-btn view-btn" onClick={() => onClick(credential)}> | ||
<i className="icon-eye" /> | ||
</div> | ||
<div className="action-btn delete-btn" onClick={() => onDeleteClick(credential)}> | ||
<i className="icon-delete" /> | ||
</div> | ||
<div className="title"> | ||
{domainName} | ||
<div className="top-img"> | ||
<img src="/images/password.svg" /> | ||
</div> | ||
<div className="title">{domainName}</div> | ||
<div className="time-label"> | ||
<i className="icon-clock" /> | ||
{getFormattedTime(timeStamp)} | ||
</div> | ||
</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
Oops, something went wrong.