Skip to content

Commit

Permalink
add offers
Browse files Browse the repository at this point in the history
  • Loading branch information
zlayine committed Oct 22, 2024
1 parent b86dada commit ecbfc93
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 2 deletions.
4 changes: 3 additions & 1 deletion resources/js/components/RadioGroupButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
{
'md:grid-cols-2': cols === 2,
'md:grid-cols-3': cols === 3,
'md:grid-cols-4': cols === 4,
'md:grid-cols-5': cols === 5,
},
`mt-4 grid grid-cols-2 gap-y-6 gap-x-4`,
]"
Expand All @@ -26,7 +28,7 @@
<div
:class="[
active || checked ? 'ring-primary' : 'ring-light-stroke-strong dark:ring-dark-stroke-strong',
'relative flex cursor-pointer rounded-lg ring-2 bg-light-surface-primary dark:bg-dark-surface-primary p-4 shadow-sm focus:outline-none transition-all',
'relative flex cursor-pointer rounded-lg ring-2 bg-light-surface-primary dark:bg-dark-surface-primary p-4 outline-none transition-all',
]"
>
<span class="flex flex-1 items-center break-words">
Expand Down
12 changes: 12 additions & 0 deletions resources/js/components/pages/Marketplace.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@ const marketTypes = [
label: 'Listings',
value: 'ListingsList',
},
{
key: 'btn-offers',
label: 'Offers',
value: 'OffersList',
},
{
key: 'btn-counter-offers',
label: 'Counter Offers',
value: 'CounterOffersList',
},
{
key: 'btn-sales',
label: 'Sales',
Expand All @@ -35,6 +45,8 @@ const marketTypes = [
const martketRoutes = {
BidsList: 'platform.marketplace.bids',
ListingsList: 'platform.marketplace.listings',
OffersList: 'platform.marketplace.offers',
CounterOffersList: 'platform.marketplace.counter-offers',
SalesList: 'platform.marketplace.sales',
};
Expand Down
2 changes: 1 addition & 1 deletion resources/js/components/pages/create/CreateListing.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
<FormCheckbox
v-model="enableTakeCollectionId"
name="enableTakeCollection"
label="Enable offer"
label="Ask for item"
description="Use this option to enable offering a different asset in exchange for the asset being sold."
/>

Expand Down
10 changes: 10 additions & 0 deletions resources/js/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,16 @@ const routes = [
name: 'platform.marketplace.listings',
component: () => import('../components/marketplace/ListingsList.vue'),
},
{
path: 'offers',
name: 'platform.marketplace.offers',
component: () => import('../components/marketplace/OffersList.vue'),
},
{
path: 'counter-offers',
name: 'platform.marketplace.counter-offers',
component: () => import('../components/marketplace/CounterOffersList.vue'),
},
{
path: 'sales',
name: 'platform.marketplace.sales',
Expand Down

0 comments on commit ecbfc93

Please sign in to comment.