Code cleanups

This commit is contained in:
Austin Chen 2021-12-10 00:27:44 -08:00
parent d945dc894b
commit e03eb2f3fd
3 changed files with 3 additions and 4 deletions

View File

@ -19,7 +19,6 @@ export default function Account() {
return ( return (
<div className="relative overflow-hidden h-screen bg-cover bg-gray-900"> <div className="relative overflow-hidden h-screen bg-cover bg-gray-900">
<Header /> <Header />
{/* <div className="flex items-center w-full h-max px-4 py-10 bg-cover card"> */}
<div className="max-w-4xl my-20 mx-auto"> <div className="max-w-4xl my-20 mx-auto">
<div> <div>
<div className="card glass lg:card-side text-neutral-content bg-gray-800 transition-all max-w-sm mx-auto my-20"> <div className="card glass lg:card-side text-neutral-content bg-gray-800 transition-all max-w-sm mx-auto my-20">

View File

@ -12,7 +12,7 @@ import {
function ContractCard(props: { contract: Contract }) { function ContractCard(props: { contract: Contract }) {
const { contract } = props const { contract } = props
return ( return (
<li key={contract.id}> <li>
<Link href={`/contract/${contract.id}`}> <Link href={`/contract/${contract.id}`}>
<a className="block hover:bg-gray-600"> <a className="block hover:bg-gray-600">
<div className="px-4 py-4 sm:px-6"> <div className="px-4 py-4 sm:px-6">
@ -63,7 +63,7 @@ export function ContractList(props: { contracts: Contract[] }) {
<div className="bg-gray-500 shadow overflow-hidden sm:rounded-md max-w-4xl w-full"> <div className="bg-gray-500 shadow overflow-hidden sm:rounded-md max-w-4xl w-full">
<ul role="list" className="divide-y divide-gray-200"> <ul role="list" className="divide-y divide-gray-200">
{contracts.map((contract) => ( {contracts.map((contract) => (
<ContractCard contract={contract} /> <ContractCard contract={contract} key={contract.id} />
))} ))}
</ul> </ul>
</div> </div>

View File

@ -249,7 +249,7 @@ export default function Simulator() {
} }
return ( return (
<div className="relative overflow-hidden h-screen bg-gray-900"> <div>
<Header /> <Header />
<div className="grid grid-cols-1 xl:grid-cols-2 gap-4 mt-8 max-w-7xl mx-auto text-center"> <div className="grid grid-cols-1 xl:grid-cols-2 gap-4 mt-8 max-w-7xl mx-auto text-center">
{/* Left column */} {/* Left column */}