Skip to content

Commit

Permalink
Update(frontend): Updated the frontend Pin input for send money.
Browse files Browse the repository at this point in the history
  • Loading branch information
Motouom committed Apr 10, 2024
1 parent 062b2fb commit 6699fc1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 40 deletions.
1 change: 1 addition & 0 deletions power-pay-frontend/dev-dist/registerSW.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 1 addition & 24 deletions power-pay-frontend/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,33 +1,10 @@
import { useState } from 'react'
import reactLogo from './assets/react.svg'
import viteLogo from '/vite.svg'

import './App.css'

function App() {
const [count, setCount] = useState(0)

return (
<>
<div>
<a href="https://vitejs.dev" target="_blank">
<img src={viteLogo} className="logo" alt="Vite logo" />
</a>
<a href="https://react.dev" target="_blank">
<img src={reactLogo} className="logo react" alt="React logo" />
</a>
</div>
<h1>Vite + React</h1>
<div className="card">
<button onClick={() => setCount((count) => count + 1)}>
count is {count}
</button>
<p>
Edit <code>src/App.tsx</code> and save to test HMR
</p>
</div>
<p className="read-the-docs">
Click on the Vite and React logos to learn more
</p>
</>
)
}
Expand Down
15 changes: 2 additions & 13 deletions power-pay-frontend/src/components/okpage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,19 +55,9 @@ const OKPage: React.FC = () => {
<h1 className="text-2xl font-bold pb-10">Confirmation Alert!</h1>
<p className="text-md">{successMessage}</p>
</div>
return (
<div className="flex justify-center items-center p-10 mb-34 border border-white rounded-3xl bg--500 text-white">
<div className="card">
<div className="ok-page">
<h1>Success!</h1>
<br />
<p>The money was successfully transferred.</p>
</div>
<div className="mt-16">
<button className="w-96 mt-16 bg-Gray10-color rounded-3xl p-2 text-center text-white bg-green-500">OK</button>
</div>
<div className="pt-12">
<button className="rounded-full w-80 m-auto px-4 py-2 text-white text-lg absolute inset-x-0 bottom-12">
<button className="rounded-full bg-blue-950 hover:bg-blue-900 w-80 m-auto px-4 py-2 text-white text-lg absolute inset-x-0 bottom-12">
OK
</button>
</div>
Expand All @@ -76,5 +66,4 @@ const OKPage: React.FC = () => {
);
};

export default OKPage;

export default OKPage;
7 changes: 4 additions & 3 deletions power-pay-frontend/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@

import React from 'react'
import ReactDOM from 'react-dom/client'
import App from './App.tsx'
import './index.css'
import './App.css'
import OKPage from './components/okpage.tsx'


ReactDOM.createRoot(document.getElementById('root')!).render(
<React.StrictMode>
<App />
<OKPage />
</React.StrictMode>,
)

0 comments on commit 6699fc1

Please sign in to comment.