-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/UniqueCoderRihan/SpeakUp-Cl…
…ient into Mission-Finishing-Ui
- Loading branch information
Showing
7 changed files
with
118 additions
and
83 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,31 @@ | ||
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node | ||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs | ||
|
||
name: Node.js CI | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [14.x, 16.x, 18.x] | ||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'npm' | ||
- run: npm ci | ||
- run: npm run build --if-present | ||
- run: npm test |
This file was deleted.
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
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,36 @@ | ||
import { useEffect, useState } from "react"; | ||
import { Link, useLocation } from "react-router-dom"; | ||
|
||
|
||
const PaymentChoose = () => { | ||
|
||
// useing localstore for geting data by navigate. | ||
const location = useLocation(); | ||
const [row, setRow] = useState(null) | ||
console.log(row); | ||
useEffect(() => { | ||
const storedRow = localStorage.getItem('row'); | ||
if (storedRow) { | ||
setRow(JSON.parse(storedRow)); | ||
localStorage.removeItem('row') | ||
} | ||
}, []) | ||
if (row === null) { | ||
return <p>loading</p> | ||
} | ||
return ( | ||
<div className="hero min-h-screen bg-base-200"> | ||
<div className="hero-content flex-col lg:flex-row-reverse"> | ||
|
||
<div className="card flex-shrink-0 w-full max-w-sm shadow-2xl bg-base-300 p-10 "> | ||
<p className="text-3xl font-serif p-3">Choose Your Payment Method</p> | ||
<Link to='/dashbord/stripe-pay' state={{row}}><button className="btn btn-outline">Payment With Stripe</button></Link> | ||
<Link><button className="btn btn-outline my-2">Payment With SSL_COMMARCE</button></Link> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
); | ||
}; | ||
|
||
export default PaymentChoose; |
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,11 @@ | ||
import React from 'react'; | ||
|
||
const SslPay = () => { | ||
return ( | ||
<div> | ||
SslPay | ||
</div> | ||
); | ||
}; | ||
|
||
export default SslPay; |
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