= ({
return (
= ({
<>
({
- ...prevVal,
- [currVal.id]: {
- availableLabel: "Available",
- availableSecondLabel: "Will become available",
- hiddenSecondLabel: "Will become published"
- }
- }),
- {} as Messages
- )}
+ messages={{
+ availableLabel: "Available",
+ availableSecondLabel: "Will become available",
+ unavailableLabel: "Lorem Ipsum",
+ visibleSecondLabel: "Dolor Sit Amet",
+ hiddenSecondLabel: "Will become published",
+ hiddenLabel: "Hidden",
+ visibleLabel: "Visible",
+ availableDateText: "available from 07/30/2020",
+ setAvailabilityDateLabel: "xd4"
+ }}
/>
));
diff --git a/src/components/ChannelsAvailabilityCard/ChannelsAvailabilityCardWrapper.tsx b/src/components/ChannelsAvailabilityCard/ChannelsAvailabilityCardWrapper.tsx
index 63737502b..7b976a627 100644
--- a/src/components/ChannelsAvailabilityCard/ChannelsAvailabilityCardWrapper.tsx
+++ b/src/components/ChannelsAvailabilityCard/ChannelsAvailabilityCardWrapper.tsx
@@ -1,8 +1,9 @@
-import { Button, Card, CardContent, Typography } from "@material-ui/core";
+import { Card, CardContent, Typography } from "@material-ui/core";
import { useUser } from "@saleor/auth";
import CardTitle from "@saleor/components/CardTitle";
import Hr from "@saleor/components/Hr";
import RequirePermissions from "@saleor/components/RequirePermissions";
+import { Button } from "@saleor/macaw-ui";
import { PermissionEnum } from "@saleor/types/globalTypes";
import React from "react";
import { useIntl } from "react-intl";
@@ -55,7 +56,6 @@ export const ChannelsAvailabilityWrapper: React.FC