Skip to content

Commit b945964

Browse files
committed
Fix: removed cost from seat category
1 parent 2d20444 commit b945964

File tree

4 files changed

+5
-16
lines changed

4 files changed

+5
-16
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "@mezh-hq/react-seat-toolkit",
33
"version": "0.22.10",
44
"description": "React UI library to design and render seat layouts",
5+
"browser": "dist/index.js",
56
"main": "dist/index.js",
67
"module": "dist/index.js",
78
"types": "dist/index.d.ts",

src/components/controls/select/seats/categorizer.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,6 @@ const Categorizer = ({ firstElement, selectedElementIds }) => {
5959
className="h-8"
6060
onChange={(e) => onUpdateCategory({ ...category, name: e.target.value })}
6161
/>
62-
<Input
63-
defaultValue={category.cost}
64-
className="h-8 w-5/12"
65-
onChange={(e) =>
66-
onUpdateCategory({ ...category, cost: e.target.value ? parseFloat(e.target.value) : 0 })
67-
}
68-
/>
6962
<Trash2
7063
size={22}
7164
className="hover:text-gray-500 flex-shrink-0 cursor-pointer transition-all duration-medium"

src/store/reducers/editor/index.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,22 +27,19 @@ const initialState = {
2727
id: uuidv4(),
2828
name: "Standard",
2929
color: "#000000",
30-
textColor: "#f7f7f7",
31-
cost: 0
30+
textColor: "#f7f7f7"
3231
},
3332
{
3433
id: uuidv4(),
3534
name: "Premium",
3635
color: "#FF0000",
37-
textColor: "#f7f7f7",
38-
cost: 100
36+
textColor: "#f7f7f7"
3937
},
4038
{
4139
id: uuidv4(),
4240
name: "VIP",
4341
color: "#0000FF",
44-
textColor: "#f7f7f7",
45-
cost: 500
42+
textColor: "#f7f7f7"
4643
}
4744
],
4845
sections: [
@@ -181,8 +178,7 @@ export const slice = createSlice({
181178
id: uuidv4(),
182179
name: "New Category",
183180
color: "#000000",
184-
textColor: "#f7f7f7",
185-
cost: 0
181+
textColor: "#f7f7f7"
186182
};
187183
state.categories.push(action.payload);
188184
},

src/types/elements/seat.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ export interface ISeatCategory {
33
name: string;
44
color: string;
55
textColor: string;
6-
cost: number;
76
}
87

98
export enum SeatStatus {

0 commit comments

Comments
 (0)