[working] change and move test values
This commit is contained in:
parent
53b83db8df
commit
7fc9b35ebc
@ -12,6 +12,7 @@ import { usePromocodeStore } from "../../../../../stores/promocodes";
|
||||
import { useTariffStore } from "../../../../../stores/tariffs";
|
||||
import { useCartStore } from "../../../../../stores/cart";
|
||||
|
||||
|
||||
export interface MWProps {
|
||||
openModal: () => void;
|
||||
}
|
||||
@ -68,18 +69,6 @@ const columns: GridColDef[] = [
|
||||
},
|
||||
];
|
||||
|
||||
/* const testTariffArray: ArrayProps[] = [
|
||||
{ id: 1, name: "Тариф 1", type: "tariff", service: "Шаблонизатор документов", disk: 100, time: 200, points: 300, price: 100500 },
|
||||
{ id: 2, name: "Тариф 2", type: "tariff", service: "Шаблонизатор документов", disk: 100, time: 200, points: 300, price: 100500 },
|
||||
{ id: 3, name: "Тариф 3", type: "tariff", service: "Шаблонизатор документов", disk: 100, time: 200, points: 300, price: 100500 },
|
||||
{
|
||||
id: 4, name: "Пакет 1", type: "package", tariffs: [
|
||||
{ id: 1, name: "Тариф 1", type: "tariff", service: "Шаблонизатор документов", disk: 100, time: 200, points: 300, price: 100500 },
|
||||
{ id: 2, name: "Тариф 2", type: "tariff", service: "Шаблонизатор документов", disk: 100, time: 200, points: 300, price: 100500 },
|
||||
]
|
||||
},
|
||||
]; */
|
||||
|
||||
const DataGridElement: React.FC<MWProps> = ({ openModal }) => {
|
||||
const promocodeArray = usePromocodeStore(state => state.promocodeArray);
|
||||
const tariffsSelectedRowsData = useTariffStore(state => state.tariffsSelectedRowsData);
|
||||
|
@ -8,7 +8,7 @@ export const testDiscounts: Discount[] = [
|
||||
from: "",
|
||||
dueTo: "",
|
||||
privileges: [
|
||||
{ good: "Опросник", discount: 0.3 },
|
||||
{ good: "Шаблонизатор документов", discount: 0.3 },
|
||||
{ good: "Опросник", discount: 0.2 },
|
||||
],
|
||||
active: false,
|
||||
@ -24,7 +24,7 @@ export const testDiscounts: Discount[] = [
|
||||
from: "",
|
||||
dueTo: "",
|
||||
privileges: [
|
||||
{ good: "Опросник", discount: 0.3 },
|
||||
{ good: "Сокращатель ссылок", discount: 0.3 },
|
||||
{ good: "Опросник", discount: 0.2 },
|
||||
],
|
||||
active: true,
|
||||
@ -40,7 +40,7 @@ export const testDiscounts: Discount[] = [
|
||||
from: "",
|
||||
dueTo: "",
|
||||
privileges: [
|
||||
{ good: "Опросник", discount: 0.3 },
|
||||
{ good: "Шаблонизатор документов", discount: 0.3 },
|
||||
{ good: "Опросник", discount: 0.2 },
|
||||
],
|
||||
active: false,
|
||||
|
21
src/stores/mocks/tariffs.ts
Normal file
21
src/stores/mocks/tariffs.ts
Normal file
@ -0,0 +1,21 @@
|
||||
import { TariffPackage, TariffsOrPackages } from "../../model/tariff";
|
||||
|
||||
|
||||
const testPackage: TariffPackage = {
|
||||
id: 4, name: "Пакет 1", tariffs: [
|
||||
{ id: 1, name: "Тариф 1", type: "tariff", service: "Шаблонизатор документов", disk: 100, time: 200, points: 300, price: 100500 },
|
||||
{ id: 2, name: "Тариф 2", type: "tariff", service: "Опросник", disk: 100, time: 200, points: 300, price: 100500 },
|
||||
],
|
||||
disk: 200,
|
||||
points: 600,
|
||||
price: 201000,
|
||||
services: ["Шаблонизатор документов", "Опросник"],
|
||||
time: 400,
|
||||
};
|
||||
|
||||
export const testTariffs: TariffsOrPackages = [
|
||||
{ id: 1, name: "Тариф 1", type: "tariff", service: "Шаблонизатор документов", disk: 100, time: 200, points: 300, price: 100500 },
|
||||
{ id: 2, name: "Тариф 2", type: "tariff", service: "Шаблонизатор документов", disk: 100, time: 200, points: 300, price: 100500 },
|
||||
{ id: 3, name: "Тариф 3", type: "tariff", service: "Шаблонизатор документов", disk: 100, time: 200, points: 300, price: 100500 },
|
||||
testPackage,
|
||||
];
|
Loading…
Reference in New Issue
Block a user