Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Use better types
dominik-zeglen6706896283d4
diff --git a/saleor/static/dashboard-next/staff/components/StaffList/StaffList.tsx b/saleor/static/dashboard-next/staff/components/StaffList/StaffList.tsxindex b2c13887fa..1f6c1e7014 100644--- a/saleor/static/dashboard-next/staff/components/StaffList/StaffList.tsx+++ b/saleor/static/dashboard-next/staff/components/StaffList/StaffList.tsx@@ -9,7 +9,7 @@ import TableRow from "@material-ui/core/TableRow";import * as classNames from "classnames";import * as React from "react";-import { ListProps, Omit } from "../../..";+import { ListProps } from "../../..";import Skeleton from "../../../components/Skeleton";import StatusLabel from "../../../components/StatusLabel";import TablePagination from "../../../components/TablePagination";@@ -18,7 +18,7 @@ import { renderCollection } from "../../../misc";import { StaffList_staffUsers_edges_node } from "../../types/StaffList";interface StaffListProps extends ListProps {- staffMembers: Array<Omit<StaffList_staffUsers_edges_node, "__typename">>;+ staffMembers: StaffList_staffUsers_edges_node[];}const decorate = withStyles({diff --git a/saleor/static/dashboard-next/staff/components/StaffListPage/StaffListPage.tsx b/saleor/static/dashboard-next/staff/components/StaffListPage/StaffListPage.tsxindex 4b17631a0a..d9f781106c 100644--- a/saleor/static/dashboard-next/staff/components/StaffListPage/StaffListPage.tsx+++ b/saleor/static/dashboard-next/staff/components/StaffListPage/StaffListPage.tsx@@ -2,7 +2,7 @@ import Button from "@material-ui/core/Button";import AddIcon from "@material-ui/icons/Add";import * as React from "react";-import { ListProps, Omit, UserError } from "../../..";+import { ListProps, UserError } from "../../..";import { Container } from "../../../components/Container";import PageHeader from "../../../components/PageHeader";import Toggle from "../../../components/Toggle";@@ -15,7 +15,7 @@ import StaffList from "../StaffList/StaffList";export interface StaffListPageProps extends ListProps {errors: UserError[];- staffMembers: Array<Omit<StaffList_staffUsers_edges_node, "__typename">>;+ staffMembers: StaffList_staffUsers_edges_node[];onAdd: (data: AddStaffMemberForm) => void;}diff --git a/saleor/static/dashboard-next/storybook/stories/staff/StaffListPage.tsx b/saleor/static/dashboard-next/storybook/stories/staff/StaffListPage.tsxindex 7bc5636c9b..6c7d7ab569 100644--- a/saleor/static/dashboard-next/storybook/stories/staff/StaffListPage.tsx+++ b/saleor/static/dashboard-next/storybook/stories/staff/StaffListPage.tsx@@ -9,6 +9,7 @@ import { staffMembers } from "../../../staff/fixtures";import Decorator from "../../Decorator";const props: StaffListPageProps = {+ errors: [],onAdd: undefined,staffMembers,...pageListProps.default