This is an automated email from the ASF dual-hosted git repository.
apratim pushed a commit to branch main
in repository
https://gitbox.apache.org/repos/asf/incubator-resilientdb-resvault.git
The following commit(s) were added to refs/heads/main by this push:
new 6dba550 Delete Logs.jsx
6dba550 is described below
commit 6dba5504a9b5760040bc9a709d69f32e8eaec704
Author: Apratim Shukla <[email protected]>
AuthorDate: Tue Apr 8 21:48:27 2025 -0700
Delete Logs.jsx
---
src/pages/Logs.jsx | 96 ------------------------------------------------------
1 file changed, 96 deletions(-)
diff --git a/src/pages/Logs.jsx b/src/pages/Logs.jsx
deleted file mode 100644
index a16542f..0000000
--- a/src/pages/Logs.jsx
+++ /dev/null
@@ -1,96 +0,0 @@
-/**
-* Licensed to the Apache Software Foundation (ASF) under one
-* or more contributor license agreements. See the NOTICE file
-* distributed with this work for additional information
-* regarding copyright ownership. The ASF licenses this file
-* to you under the Apache License, Version 2.0 (the
-* "License"); you may not use this file except in compliance
-* with the License. You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing,
-* software distributed under the License is distributed on an
-* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-* KIND, either express or implied. See the License for the
-* specific language governing permissions and limitations
-* under the License.
-*/
-
-
-/*global chrome*/
-import '../css/App.css';
-import ExitToAppIcon from '@mui/icons-material/ExitToApp';
-import icon from "../images/logos/bitcoin.png";
-import React, { useContext } from 'react';
-import { GlobalContext } from '../context/GlobalContext';
-import { useNavigate } from "react-router-dom";
-import versionData from '../data/version.json';
-
-function Logs() {
- const { transactionState, publicKey, transactionHistory } =
useContext(GlobalContext);
- const navigate = useNavigate();
-
- const back = async () => {
- chrome.storage.local.clear(() => {
- navigate("/login");
- });
- };
-
- const dashboard = () => {
- navigate("/dashboard");
- };
-
- const reversedData = [...transactionHistory].reverse();
- const transactionsToDisplay = reversedData.slice(0, 5);
-
- const shortenTransactionId = (originalTxnId) => {
- return `${originalTxnId.slice(0, 7)}...${originalTxnId.slice(-7)}`;
- };
-
- return (
- <div className="page page--main" data-page="buy">
- <header className="header header--fixed">
- <div className="header__inner">
- <div className="header__logo header__logo--text" style={{
cursor: "pointer" }}>
- Res<strong>Vault</strong>
- </div>
- <div className="header__icon open-panel" data-panel="left">
- <button style={{ background: 'none', color: 'white',
fontWeight: 'bolder', outline: 'none', borderStyle: 'none', cursor: 'pointer'
}} onClick={back}>
- <ExitToAppIcon />
- </button>
- </div>
- </div>
- </header>
-
- <div className="page__content page__content--with-header
page__content--with-bottom-nav">
- <h2 className="page__title">History</h2>
- <div className="page__title-bar">
- <h3>Recent Transactions</h3>
- <div className="page__title-right">
- <button className="button button--main
button--ex-small" onClick={dashboard}>Back</button>
- </div>
- </div>
-
- <div className="cards cards--11">
- {transactionsToDisplay.map((transactionId, index) => (
- <p className="card-coin" style={{ cursor: 'pointer' }}
key={index}>
- <div className="card-coin__logo">
- <img src={icon} alt="currency" />
- <span>
- Transaction ID
<b>{shortenTransactionId(transactionId)}</b>
- </span>
- </div>
- </p>
- ))}
- </div>
-
- <p className="bottom-navigation" style={{ backgroundColor:
'transparent', display: 'flex', justifyContent: 'center', textShadow: '1px 1px
1px rgba(0, 0, 0, 0.3)', color: 'rgb(255, 255, 255, 0.5)', fontSize: '9px' }}>
- ResVault v{versionData.version}
- </p>
- </div>
- </div>
- );
-}
-
-export default Logs;
\ No newline at end of file