Merge pull request #26 from codex-storage/releases/0.0.2

Releases/0.0.2
This commit is contained in:
Arnaud 2024-09-27 13:12:42 +02:00 committed by GitHub
commit 8b1700b8e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 14 additions and 21 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "@codex-storage/marketplace-ui",
"version": "0.0.1",
"version": "0.0.2",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@codex-storage/marketplace-ui",
"version": "0.0.1",
"version": "0.0.2",
"license": "MIT",
"dependencies": {
"@codex-storage/marketplace-ui-components": "0.0.9",

View File

@ -5,7 +5,7 @@
"type": "git",
"url": "https://github.com/codex-storage/codex-marketplace-ui"
},
"version": "0.0.1",
"version": "0.0.2",
"type": "module",
"scripts": {
"dev": "vite",

View File

@ -1,4 +1,4 @@
import { Grid2x2Check } from "lucide-react";
import { StretchHorizontal } from "lucide-react";
import "./AvailabilityActionsCell.css";
import { CodexAvailability } from "@codex-storage/sdk-js/async";
@ -44,7 +44,7 @@ export function AvailabilityActionsCell({
className="cell--action availability-action"
title="Reservations"
onClick={onReservationsClick}>
<Grid2x2Check width={"1.25rem"} />
<StretchHorizontal width={"1.25rem"} />
</a>
</div>
);

View File

@ -28,13 +28,11 @@ export function AvailabilityConfirm({
</div>
<div>
<b className="availabilitConfirm-subtitle">
Confirm your new availability
</b>
<b className="availabilitConfirm-subtitle">Confirm your new sale</b>
<p className="availabilitConfirm-message">
By clicking 'Next', you will establish a new availability based on
the space allocation specified above. Do you want to confirm ?
By clicking 'Next', you will establish a new sale based on the space
allocation specified above. Do you want to confirm ?
</p>
</div>
</div>

View File

@ -33,7 +33,7 @@ const defaultAvailabilityData: AvailabilityState = {
};
export function AvailabilityCreate({ space }: Props) {
const steps = useRef(["Availability", "Confirmation", "Success"]);
const steps = useRef(["Sale", "Confirmation", "Success"]);
const [availability, setAvailability] = useState<AvailabilityState>(
defaultAvailabilityData
);
@ -126,12 +126,7 @@ export function AvailabilityCreate({ space }: Props) {
return (
<>
<Button
label="Availability"
Icon={Plus}
onClick={onOpen}
variant="primary"
/>
<Button label="Sale" Icon={Plus} onClick={onOpen} variant="primary" />
<Modal open={state.open} onClose={onClose} displayCloseButton={false}>
<Stepper

View File

@ -62,7 +62,7 @@ export function AvailabilityForm({
const isValid = isAvailabilityValid(availability, max);
const helper = isValid
? "Total size of availability's storage in bytes"
? "Total size of sale's storage in bytes"
: "The total size cannot exceed the space available.";
return (

View File

@ -16,6 +16,6 @@ export function AvailabilitySuccess({ dispatch }: AvailabilityComponentProps) {
<Placeholder
Icon={<SuccessIcon />}
title="Success"
message="The new availability will appear in your availability list. You can safely close this dialog."></Placeholder>
message="The new sale will appear in your sale list. You can safely close this dialog."></Placeholder>
);
}

View File

@ -23,7 +23,7 @@ export function useStorageRequestMutation(
.createStorageRequest(input)
.then((s) => Promises.rejectOnError(s)),
onSuccess: async () => {
queryClient.invalidateQueries({ queryKey: ["mutationKey"] });
queryClient.invalidateQueries({ queryKey: ["purchases"] });
// if (!requestId.startsWith("0x")) {
// requestId = "0x" + requestId;

View File

@ -63,7 +63,7 @@ const Layout = () => {
Component: (p: MenuItemComponentProps) => (
<Link to="/dashboard/availabilities" {...p}>
<Server size={ICON_SIZE} />
Availabilities
Sales
</Link>
),
},