update version 4.6

This commit is contained in:
Admin 2025-10-31 07:47:39 +07:00
parent b2fc9cb629
commit 675b76370f
7 changed files with 31 additions and 27 deletions

BIN
.DS_Store vendored

Binary file not shown.

BIN
bid-extension.zip Normal file

Binary file not shown.

File diff suppressed because one or more lines are too long

View File

@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "Bid Extension",
"version": "4.3",
"version": "4.6",
"description": "Bid Extension",
"action": {
"default_icon": {

View File

@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "Bid Extension",
"version": "4.3",
"version": "4.6",
"description": "Bid Extension",
"action": {
"default_icon": {

View File

@ -2,13 +2,17 @@ import CheckAllList from "@/pages/check-all-list";
import FormFillQuantities from "@/pages/form-fill-quanties";
export default function BrokerbinLayout() {
const url = new URL(window.location.href);
// Render button check all list
if (window.location.href.includes("https://members.brokerbin.com/partkey")) {
if (
url.pathname.includes("/partkey") ||
(url.searchParams.get("loc") === "partkey" && url.searchParams.has("parts"))
) {
return <CheckAllList />;
}
// Render forn quantities
if (window.location.href.includes("https://members.brokerbin.com/rfq")) {
if (url.href.includes("https://members.brokerbin.com/rfq")) {
return <FormFillQuantities />;
}
}

View File

@ -291,14 +291,14 @@ export default function FormPage() {
</div>
)}
{competitor && competitor?.[0].proxyamount && (
{competitor && competitor?.[0]?.proxyamount && (
<div className="flex flex-col gap-1">
<Label className="text-destructive">Competitor max bid</Label>
<Input
readOnly
type="number"
className="placeholder:!text-xs"
value={competitor?.[0].proxyamount}
value={competitor?.[0]?.proxyamount}
/>
</div>
)}