Skip to content

Commit

Permalink
bugfix: model repository (#135)
Browse files Browse the repository at this point in the history
* payment added  but awaiting clearance on fow after payment

* style: pretty code

by ci

* contract updated

* refactor: move from samples

Signed-off-by: Nasfame <laciferin@gmail.com>

* revert: contract/samples from main

Signed-off-by: Nasfame <laciferin@gmail.com>

* add: mulit sig walet

Signed-off-by: Nasfame <laciferin@gmail.com>

* remove sample contract: MultiSigWaillet

Signed-off-by: Nasfame <laciferin@gmail.com>

* fixes-test: payment.ts

Signed-off-by: Nasfame <laciferin@gmail.com>

* style: pretty code

by ci

* fixes: import deps

Signed-off-by: Nasfame <laciferin@gmail.com>

* env example added

* tspath params: @lib

Signed-off-by: Nasfame <laciferin@gmail.com>

* fixes: tsconfig include

Signed-off-by: Nasfame <laciferin@gmail.com>

* tsconfig: include *abi.json

Signed-off-by: Nasfame <laciferin@gmail.com>

* tsconfig: remove

Signed-off-by: Nasfame <laciferin@gmail.com>

* style: pretty code

by ci

* issue #134 fixed

* style: pretty code

by ci

---------

Signed-off-by: Nasfame <laciferin@gmail.com>
Co-authored-by: techyNonso <techyNonso@users.noreply.github.com>
Co-authored-by: Nasfame <laciferin@gmail.com>
Co-authored-by: Nasfame <Nasfame@users.noreply.github.com>
  • Loading branch information
4 people authored Nov 10, 2023
1 parent 9fe31ae commit 34d9147
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 10 deletions.
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ DATABASE_URL=
NEXT_PUBLIC_LH_API=
NEXT_PUBLIC_WEB_TOKEN=


NEXT_PUBLIC_PARTICLE_NETWORK_PROJECT_ID=
NEXT_PUBLIC_PARTICLE_NETWORK_CLIENT_KEY=
NEXT_PUBLIC_PARTICLE_NETWORK_APP_ID=


NEXT_PUBLIC_PAYMENT_CONTRACT_ADDRESS=
NEXT_PUBLIC_WALLET_CONTRACT_ADDRESS=

1 change: 0 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/** @type {import('next').NextConfig} */
const value = 0
const nextConfig = {

images: {
domains: ['avataaars.io'],
},
Expand Down
6 changes: 3 additions & 3 deletions src/app/dashboard/repository/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { GoDownload } from 'react-icons/go'
import { GoSortAsc } from 'react-icons/go'
import { BiLike } from 'react-icons/bi'
import Repository from './components/repository'
import repository from './components/repository'
import repositoryList from '@/data/repository'

export default function Page() {
const pathname = usePathname()
Expand Down Expand Up @@ -75,10 +75,10 @@ export default function Page() {

<div className=" w-[85%] h-full ">
<div className="w-full h-[80%] flex flex-col gap-6 overflow-y-scroll">
<Repository repository={repository} />
<Repository repository={repositoryList} />
</div>

<div className="flex h-[20%] justify-center text-primary_7 items-center ">
<div className="flex h-[20%] justify-center gap-x-3 text-primary_7 items-center ">
<div>
<button className="w-24 bg-primary_11 py-2 rounded-full">Next</button>
</div>
Expand Down
12 changes: 8 additions & 4 deletions src/app/dashboard/settings/profile/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ export default function Page() {
<div className="flex gap-4 items-center text-[#8F8F8F] text-sm">
<Link
href="/dashboard/settings"
className="flex gap-2 items-center border-none outline-none">
className="flex gap-2 items-center border-none outline-none"
>
<PiCaretLeft />
<span>Back</span>
</Link>
Expand Down Expand Up @@ -78,7 +79,8 @@ export default function Page() {
</div>
<button
className="flex items-center justify-center p-2 bg-primary_7 text-primary_6 rounded-full"
onClick={openModal}>
onClick={openModal}
>
<PiPencilSimpleLight size={20} />
</button>
</div>
Expand All @@ -87,7 +89,8 @@ export default function Page() {
{profileInfo.map((item) => (
<div
key={item.id}
className="border border-primary_8 rounded-xl py-2 w-full flex flex-col gap-4 px-4">
className="border border-primary_8 rounded-xl py-2 w-full flex flex-col gap-4 px-4"
>
<p className="text-[#C1C1C1]">{item.text}</p>
<div className="flex justify-between items-center">
<h4 className="text-lg">{item.count}</h4>
Expand All @@ -109,7 +112,8 @@ export default function Page() {
{models.map((model) => (
<div
key={model.id}
className="w-full p-2 flex gap-4 items-center border border-primary_8 rounded-xl">
className="w-full p-2 flex gap-4 items-center border border-primary_8 rounded-xl"
>
<div className="flex flex-col gap-3">
<span className="text-xs bg-[#232323] py-1 px-2 w-max rounded-full text-[#8F8F8F]">
{model.title}
Expand Down
4 changes: 2 additions & 2 deletions src/data/repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ interface Repository {
likes: string
}

const repository: Repository[] = [
const repositoryList: Repository[] = [
{
id: 1,
label: 'Text Generation',
Expand Down Expand Up @@ -61,4 +61,4 @@ const repository: Repository[] = [
},
]

export default repository
export default repositoryList

0 comments on commit 34d9147

Please sign in to comment.