Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Remove optional props
Lukasz Szewczyk49768e142a10
diff --git a/saleor/static/dashboard-next/home/components/Dashbaord/Dashbaord.tsx b/saleor/static/dashboard-next/home/components/Dashbaord/Dashbaord.tsxindex 39fb6182c7..b264f5d3aa 100644--- a/saleor/static/dashboard-next/home/components/Dashbaord/Dashbaord.tsx+++ b/saleor/static/dashboard-next/home/components/Dashbaord/Dashbaord.tsx@@ -17,13 +17,13 @@ interface MoneyType {}export interface DashboardProps {activities?: Array<{- action?: string;- admin?: boolean;- date?: string;+ action: string;+ admin: boolean;+ date: string;elementName?: string;id: string;- newElement?: string;- user?: string;+ newElement: string;+ user: string;}>;daily: {orders: {diff --git a/saleor/static/dashboard-next/home/components/HomeActivityCard/HomeActivityCard.tsx b/saleor/static/dashboard-next/home/components/HomeActivityCard/HomeActivityCard.tsxindex 28f9a71cd2..43cdbe308b 100644--- a/saleor/static/dashboard-next/home/components/HomeActivityCard/HomeActivityCard.tsx+++ b/saleor/static/dashboard-next/home/components/HomeActivityCard/HomeActivityCard.tsx@@ -13,13 +13,13 @@ import { renderCollection } from "../../../misc";interface HomeProductListCardProps {activities?: Array<{- action?: string;- admin?: boolean;- date?: string;+ action: string;+ admin: boolean;+ date: string;elementName?: string;- id?: string;- newElement?: string;- user?: string;+ id: string;+ newElement: string;+ user: string;}>;disabled: boolean;}diff --git a/saleor/static/dashboard-next/home/components/HomeNotificationTable/HomeNotificationTable.tsx b/saleor/static/dashboard-next/home/components/HomeNotificationTable/HomeNotificationTable.tsxindex 234fe54110..3bbff2556d 100644--- a/saleor/static/dashboard-next/home/components/HomeNotificationTable/HomeNotificationTable.tsx+++ b/saleor/static/dashboard-next/home/components/HomeNotificationTable/HomeNotificationTable.tsx@@ -12,17 +12,16 @@ import i18n from "../../../i18n";interface HomeNotificationTableProps {disabled: boolean;- notifications?: {- id?: number;- orders?: number;- payments?: number;- problems?: number;- productsOut?: number;+ notifications: {+ orders: number;+ payments: number;+ problems: number;+ productsOut: number;};- toOrders?();- toPayments?();- toProblems?();- toProductsOut?();+ toOrders();+ toPayments();+ toProblems();+ toProductsOut();}const decorate = withStyles(theme => ({diff --git a/saleor/static/dashboard-next/home/components/HomeProductListCard/HomeProductList.tsx b/saleor/static/dashboard-next/home/components/HomeProductListCard/HomeProductList.tsxindex 3f94223a7f..58762ee3b1 100644--- a/saleor/static/dashboard-next/home/components/HomeProductListCard/HomeProductList.tsx+++ b/saleor/static/dashboard-next/home/components/HomeProductListCard/HomeProductList.tsx@@ -18,7 +18,7 @@ interface MoneyType {currency: string;}interface HomeProductListProps {- topProducts?: Array<{+ topProducts: Array<{id: string;name: string;orders: number;diff --git a/saleor/static/dashboard-next/home/components/HomeProductListCard/HomeProductListCard.tsx b/saleor/static/dashboard-next/home/components/HomeProductListCard/HomeProductListCard.tsxindex 7924b46699..2d7be7cb12 100644--- a/saleor/static/dashboard-next/home/components/HomeProductListCard/HomeProductListCard.tsx+++ b/saleor/static/dashboard-next/home/components/HomeProductListCard/HomeProductListCard.tsx@@ -14,7 +14,7 @@ interface MoneyType {}interface HomeProductListCardProps {disabled: boolean;- topProducts?: Array<{+ topProducts: Array<{id: string;name: string;orders: number;diff --git a/saleor/static/dashboard-next/home/components/HomeSalesCard/HomeSalesCard.tsx b/saleor/static/dashboard-next/home/components/HomeSalesCard/HomeSalesCard.tsxindex 10c2c8e64f..1226243e71 100644--- a/saleor/static/dashboard-next/home/components/HomeSalesCard/HomeSalesCard.tsx+++ b/saleor/static/dashboard-next/home/components/HomeSalesCard/HomeSalesCard.tsx@@ -18,8 +18,8 @@ interface MoneyType {interface HomeSalesCardProps {disabled: boolean;title: string;- daily?: {- sales?: MoneyType;+ daily: {+ sales: MoneyType;};}