
* Use root level channel argument * Update schema after rebase * Adjust list views (#1187) * Use root level channel argument * Use channel from filters * Handle sort keys that require channel * Add channel filter on sales and vouchers pages * Update queries * Fix tests/fixtures * Block sort on discount pages * Add generic filter validation * Fix tests, update changelog * Channels availability status changes, code cleanup * Update snapshots
18 lines
589 B
TypeScript
18 lines
589 B
TypeScript
import { productChannels } from "@saleor/channels/fixtures";
|
|
import Decorator from "@saleor/storybook/Decorator";
|
|
import { storiesOf } from "@storybook/react";
|
|
import React from "react";
|
|
|
|
import ChannelsAvailabilityDropdown, {
|
|
ChannelsAvailabilityDropdownProps
|
|
} from "./ChannelsAvailabilityDropdown";
|
|
|
|
const props: ChannelsAvailabilityDropdownProps = {
|
|
allChannelsCount: 6,
|
|
channels: productChannels,
|
|
showStatus: true
|
|
};
|
|
|
|
storiesOf("Generics / ChannelsAvailabilityDropdown", module)
|
|
.addDecorator(Decorator)
|
|
.add("default", () => <ChannelsAvailabilityDropdown {...props} />);
|