-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f9b2808
commit d5c12dc
Showing
16 changed files
with
1,287 additions
and
255 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
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,12 @@ | ||
import {PaymentElement} from '@stripe/react-stripe-js'; | ||
|
||
const PaymentForm = () => { | ||
return ( | ||
<form> | ||
<PaymentElement /> | ||
<button>Submit</button> | ||
</form> | ||
); | ||
}; | ||
|
||
export default PaymentForm; |
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,18 @@ | ||
import * as React from "react" | ||
import Link from 'next/link' | ||
|
||
const SchoolSelect = ({ data, onClick, selectedIndex }) => { | ||
|
||
const { name, id, type, address, grades } = data || {} | ||
|
||
return <button className={`w-full border rounded ${selectedIndex == id ? 'bg-green-50' : 'hover:bg-slate-50'}`} onClick={() => { onClick(data) }}> | ||
<div className="relative flex flex-col justify-start items-start content-start p-2"> | ||
<span className="absolute right-2 top-2 text-sm font-black">{type.toUpperCase()}, {grades}</span> | ||
<p className="font-bold text-lg">{name}</p> | ||
<p>{address}</p> | ||
</div> | ||
</button> | ||
|
||
} | ||
|
||
export default SchoolSelect |
Oops, something went wrong.