From ad7d7fcd519f67e9bc411c8f0f62b4976676a970 Mon Sep 17 00:00:00 2001 From: Kasper Fabricius Kristensen <45367945+kasperkristensen@users.noreply.github.com> Date: Mon, 13 Mar 2023 14:02:20 +0100 Subject: [PATCH] fix(admin-ui): Lint all UI files (#3459) --- .../ui/src/components/atoms/avatar/index.tsx | 6 +- .../components/atoms/back-button/index.tsx | 3 +- .../src/components/atoms/checkbox/index.tsx | 4 +- .../atoms/date-picker/custom-header.tsx | 2 +- .../atoms/date-picker/date-picker.tsx | 14 ++-- .../atoms/date-picker/time-picker.tsx | 12 ++-- .../components/atoms/fade-wrapper/index.tsx | 2 +- .../atoms/file-upload-field/index.tsx | 2 +- .../atoms/includes-tax-tooltip/index.tsx | 3 +- .../components/atoms/input-error/index.tsx | 7 +- .../components/atoms/notification/index.tsx | 2 +- .../atoms/number-scroller/index.tsx | 8 +-- .../components/atoms/os-shortcut/index.tsx | 6 +- .../atoms/save-notification/error-state.tsx | 2 +- .../atoms/save-notification/index.tsx | 10 +-- .../atoms/save-notification/saving-state.tsx | 2 +- .../atoms/save-notification/success-state.tsx | 2 +- .../ui/src/components/atoms/spinner.tsx | 4 +- .../ui/src/components/atoms/switch/index.tsx | 5 +- .../components/atoms/thumbnail/thumbnail.tsx | 10 +-- .../atoms/toaster-container/index.tsx | 2 +- .../ui/src/components/atoms/tooltip/index.tsx | 4 +- .../atoms/two-step-delete/index.tsx | 10 +-- .../fundamentals/icon-badge/index.tsx | 2 +- .../fundamentals/icons/download-icon.tsx | 2 +- .../fundamentals/icons/file-icon.tsx | 2 +- .../icons/sad-face-icon/index.tsx | 1 - .../icons/sided-mouth-face/index.tsx | 1 - .../fundamentals/image-placeholder.tsx | 2 +- .../fundamentals/input-container.tsx | 2 +- .../components/fundamentals/input-header.tsx | 4 +- .../src/components/molecules/actionables.tsx | 10 +-- .../molecules/activity-card/index.tsx | 64 ++++++----------- .../amount-and-currency-input.tsx | 10 +-- .../molecules/amount-input/amount-input.tsx | 15 ++-- .../molecules/availability-duration/index.tsx | 2 +- .../molecules/banner-card/index.tsx | 10 +-- .../molecules/batch-job-file-card/index.tsx | 18 ++--- .../components/molecules/breadcrumb/index.tsx | 2 +- .../molecules/collapsible-tree/index.tsx | 27 ++++---- .../molecules/customer-avatar-item/index.tsx | 6 +- .../molecules/emoji-picker/index.tsx | 4 +- .../molecules/filter-dropdown/container.tsx | 8 +-- .../molecules/filter-dropdown/item.tsx | 42 +++++------ .../molecules/filter-dropdown/save-field.tsx | 4 +- .../components/molecules/filter-tab/index.tsx | 2 +- .../molecules/form-error-toaster/index.tsx | 2 +- .../molecules/form-toaster/index.tsx | 20 +++--- .../molecules/generating-input/index.tsx | 2 +- .../components/molecules/grid-input/index.tsx | 2 +- .../molecules/hot-key-action/index.tsx | 2 +- .../molecules/icon-tooltip/index.tsx | 6 +- .../indeterminate-checkbox/index.tsx | 2 +- .../molecules/input-signin/index.tsx | 8 +-- .../components/molecules/json-view/index.tsx | 8 +-- .../molecules/modal/focus-modal.tsx | 12 ++-- .../src/components/molecules/modal/index.tsx | 6 +- .../molecules/modal/layered-modal.tsx | 6 +- .../molecules/modal/stepped-modal.tsx | 10 +-- .../molecules/native-select/index.tsx | 10 +-- .../components/molecules/note-input/index.tsx | 6 +- .../molecules/notification-bell/index.tsx | 2 +- .../molecules/numbered-item/index.tsx | 8 +-- .../molecules/rma-select-shipping/index.tsx | 8 +-- .../molecules/sales-channels-list/index.tsx | 4 +- .../src/components/molecules/search-bar.tsx | 2 +- .../components/molecules/section/index.tsx | 4 +- .../next-select/components/containers.tsx | 14 ++-- .../select/next-select/components/control.tsx | 4 +- .../select/next-select/components/menu.tsx | 22 +++--- .../next-select/components/multi-value.tsx | 61 ++++++++-------- .../next-select/components/placeholder.tsx | 3 +- .../next-select/components/single-value.tsx | 5 +- .../next-select/createable-select/index.tsx | 2 +- .../molecules/select/select-components.tsx | 37 +++++----- .../molecules/shipping-option/index.tsx | 6 +- .../molecules/sidebar-company-logo/index.tsx | 6 +- .../molecules/sidebar-menu-item/index.tsx | 4 +- .../molecules/sidebar-team-member/index.tsx | 6 +- .../molecules/status-selector/index.tsx | 2 +- .../molecules/switchable-item/index.tsx | 4 +- .../molecules/table-fileds-filter/index.tsx | 20 +++--- .../table-pagination/table-pagination.tsx | 6 +- .../molecules/table-toaster/index.tsx | 2 +- .../molecules/table/filtering-option.tsx | 14 ++-- .../molecules/table/table-search.tsx | 4 +- .../molecules/tag-grid.tsx/index.tsx | 2 +- .../components/molecules/tag-input/index.tsx | 15 ++-- .../components/molecules/textarea/index.tsx | 8 +-- .../timeline-events/event-actionables.tsx | 2 +- .../timeline-events/event-container.tsx | 10 +-- .../timeline-events/event-item-container.tsx | 8 +-- .../molecules/timeline-events/note.tsx | 2 +- .../notification/resend-modal.tsx | 6 +- .../timeline-events/order-edit/created.tsx | 26 ++++--- .../timeline-events/order-edit/index.tsx | 2 +- .../order-edit/payment-required.tsx | 4 +- .../order-edit/refund-required.tsx | 2 +- .../timeline-events/order-edit/requested.tsx | 2 +- .../timeline-events/order-placed.tsx | 2 +- .../molecules/timeline-events/refund.tsx | 4 +- .../components/molecules/user-menu/index.tsx | 2 +- .../add-denomination-modal/index.tsx | 44 ++++++------ .../organisms/analytics-config-form/index.tsx | 8 +-- .../batch-jobs-activity-list/index.tsx | 19 +++-- .../organisms/confirmation-prompt.tsx | 8 +-- .../organisms/currency-input/index.tsx | 18 ++--- .../edit-denominations-modal/index.tsx | 4 +- .../organisms/edit-user-modal/index.tsx | 4 +- .../organisms/error-boundary/index.tsx | 7 +- .../organisms/export-modal/index.tsx | 4 +- .../organisms/file-upload-modal/index.tsx | 2 +- .../organisms/help-dialog/index.tsx | 10 +-- .../organisms/invite-modal/index.tsx | 8 +-- .../components/organisms/login-card/index.tsx | 6 +- .../components/organisms/metadata/index.tsx | 8 +-- .../organisms/price-input/index.tsx | 23 +++---- .../organisms/product-variant-tree/index.tsx | 4 +- .../organisms/radio-group/index.tsx | 30 ++++---- .../components/organisms/raw-json/index.tsx | 4 +- .../organisms/reset-token-card/index.tsx | 17 ++--- .../rma-return-product-table/index.tsx | 22 +++--- .../rma-select-product-table/index.tsx | 30 ++++---- .../components/organisms/section/index.tsx | 2 +- .../organisms/table-container/index.tsx | 4 +- .../ui/src/components/private-route/index.tsx | 2 +- .../templates/add-products-modal/index.tsx | 17 ++--- .../product-table-config.tsx | 13 ++-- .../src/components/templates/address-form.tsx | 5 +- .../templates/collection-modal/index.tsx | 4 +- .../add-product-table.tsx | 4 +- .../collection-product-table/index.tsx | 2 +- .../use-collection-product-columns.tsx | 6 +- .../use-sorting-options.tsx | 5 +- .../use-view-product-columns.tsx | 8 +-- .../collection-product-table/utils.tsx | 1 - .../view-products-table.tsx | 2 +- .../use-collection-actions.tsx | 1 - .../use-collection-column.tsx | 2 +- .../templates/customer-group-table/config.tsx | 69 ++++++++++--------- .../customer-groups-table.tsx | 14 ++-- .../edit-customers-table.tsx | 27 +++----- .../use-customer-orders-columns.tsx | 6 +- .../customer-table/use-customer-columns.tsx | 2 +- .../customer-table/use-customer-filters.tsx | 8 +-- .../discount-filter-dropdown/index.tsx | 6 +- .../discount-table/use-promotion-columns.tsx | 12 ++-- .../discount-table/use-promotion-filters.tsx | 8 +-- .../use-promotion-row-actions.tsx | 4 +- .../templates/draft-order-table/index.tsx | 2 +- .../use-draft-order-column.tsx | 2 +- .../gift-card-filter-dropdown/index.tsx | 6 +- .../templates/gift-card-table/index.tsx | 2 +- .../gift-card-table/use-gift-card-column.tsx | 4 +- .../gift-card-table/use-gift-card-filters.ts | 8 +-- .../templates/image-table/index.tsx | 2 +- .../templates/inventory-table/index.tsx | 6 +- .../inventory-table/use-inventory-column.tsx | 2 +- .../src/components/templates/login-layout.tsx | 6 +- .../templates/order-filter-dropdown/index.tsx | 6 +- .../order-table/use-order-column.tsx | 4 +- .../order-table/use-order-filters.ts | 8 +-- .../price-list-table/price-list-filters.tsx | 8 +-- .../price-list-table/price-list-table.tsx | 3 +- .../use-price-list-actions.tsx | 1 - .../use-price-list-columns.tsx | 4 +- .../use-price-list-filters.tsx | 8 +-- .../templates/price-list-table/utils.tsx | 1 - .../templates/price-overrides/index.tsx | 14 ++-- .../price-overrides/price-amount.tsx | 3 +- .../templates/product-table/overview.tsx | 17 +++-- .../product-table/use-filter-tabs.tsx | 8 +-- .../product-table/use-product-actions.tsx | 4 +- .../product-table/use-product-column.tsx | 2 +- .../product-table/use-product-filters.ts | 8 +-- .../templates/search-modal/index.tsx | 16 ++--- .../search-modal/keyboard-shortcuts.tsx | 13 ++-- .../search-modal/results/customer-results.tsx | 9 ++- .../search-modal/results/discount-results.tsx | 9 ++- .../search-modal/results/order-results.tsx | 7 +- .../search-modal/results/product-results.tsx | 7 +- .../search-modal/section-collapsible.tsx | 2 +- .../templates/settings-overview.tsx | 2 +- .../templates/transfer-orders-modal/index.tsx | 12 ++-- .../components/templates/two-split-pane.tsx | 8 +-- .../src/components/templates/user-table.tsx | 2 +- .../src/domain/collections/details/index.tsx | 8 +-- .../ui/src/domain/customers/details/edit.tsx | 6 +- .../groups/context/customer-group-context.tsx | 2 +- .../customers/groups/customer-group-modal.tsx | 8 +-- .../src/domain/customers/groups/details.tsx | 4 +- .../ui/src/domain/customers/groups/index.tsx | 4 +- .../add-condition/conditions-provider.tsx | 2 +- .../collections/add-collections.tsx | 4 +- .../collections-conditions-table.tsx | 9 +-- .../customer-groups/add-customer-groups.tsx | 4 +- .../customer-groups-conditions-table.tsx | 9 +-- .../product-types/add-types.tsx | 4 +- .../product-types/type-conditions-table.tsx | 9 +-- .../products/add-products.tsx | 5 +- .../add-condition-resources/tags/add-tags.tsx | 4 +- .../tags/tags-conditions-table.tsx | 9 +-- .../condition-table-actions.tsx | 17 +++-- .../edit-condition/edit-condition-modal.tsx | 4 +- .../edit-condition-provider.tsx | 8 +-- .../discounts/details/conditions/index.tsx | 11 ++- .../conditions/use-discount-conditions.tsx | 2 +- .../configurations/edit-configurations.tsx | 8 +-- .../details/configurations/index.tsx | 2 +- .../use-discount-configurations.tsx | 6 +- .../details/general/edit-general.tsx | 6 +- .../discounts/details/general/index.tsx | 8 +-- .../ui/src/domain/discounts/details/index.tsx | 2 +- .../ui/src/domain/discounts/index.tsx | 6 +- .../discount-form/add-conditions-modal.tsx | 14 ++-- .../add-condition-footer.tsx | 2 +- .../add-condition-tables/collections.tsx | 2 +- .../add-condition-tables/customer-groups.tsx | 2 +- .../add-condition-tables/tags.tsx | 3 +- .../add-condition-tables/types.tsx | 3 +- .../details-condition-tables/collections.tsx | 3 +- .../customer-groups.tsx | 3 +- .../details-condition-footer.tsx | 2 +- .../details-condition-tables/products.tsx | 3 +- .../details-condition-tables/tags.tsx | 3 +- .../details-condition-tables/types.tsx | 2 +- .../edit-condition-tables/collections.tsx | 3 +- .../edit-condition-tables/customer-groups.tsx | 3 +- .../edit-condition-footer.tsx | 2 +- .../edit-condition-tables/products.tsx | 2 +- .../edit-condition-tables/tags.tsx | 2 +- .../edit-condition-tables/types.tsx | 2 +- .../condition-tables/shared/collection.tsx | 6 +- .../shared/condition-operator.tsx | 2 +- .../condition-tables/shared/groups.tsx | 6 +- .../condition-tables/shared/products.tsx | 10 +-- .../condition-tables/shared/tags.tsx | 3 +- .../condition-tables/shared/types.tsx | 4 +- .../discounts/new/discount-form/index.tsx | 14 ++-- .../sections/conditions/condition-item.tsx | 12 ++-- .../sections/conditions/index.tsx | 4 +- .../discount-form/sections/configuration.tsx | 12 ++-- .../sections/discount-allocation.tsx | 3 +- .../discount-form/sections/discount-type.tsx | 3 +- .../new/discount-form/sections/general.tsx | 4 +- .../use-condition-modal-items.tsx | 2 +- .../src/domain/gift-cards/custom-giftcard.tsx | 6 +- .../details/edit-gift-card-modal.tsx | 4 +- .../src/domain/gift-cards/details/index.tsx | 4 +- .../details/update-balance-modal.tsx | 5 +- .../gift-cards/manage/denomination-table.tsx | 2 +- .../ui/src/domain/gift-cards/manage/index.tsx | 6 +- .../gift-cards/manage/sections/images.tsx | 1 - .../manage/sections/information.tsx | 4 +- .../admin-ui/ui/src/domain/gift-cards/new.tsx | 17 +++-- .../ui/src/domain/gift-cards/overview.tsx | 8 +-- .../src/domain/inventory/filter-dropdown.tsx | 6 +- .../src/domain/inventory/inventory/index.tsx | 4 +- .../components/general-form/index.tsx | 2 +- .../components/sales-channels-form/index.tsx | 2 +- .../sales-channels-section/index.tsx | 2 +- .../domain/inventory/locations/edit/index.tsx | 4 +- .../src/domain/inventory/locations/index.tsx | 8 +-- .../items-to-receive-form.tsx | 2 +- .../add-return-reason-screen.tsx | 4 +- .../add-return-reason/index.tsx | 2 +- .../add-additional-items-screen.tsx | 2 +- .../use-add-additional-items-columns.tsx | 6 +- .../components/items-to-send-form/index.tsx | 2 +- .../components/refund-amount-form/index.tsx | 2 +- .../rma-summaries/summary-shipping-line.tsx | 4 +- .../shipping-address-form-modal.tsx | 2 +- .../orders/components/shipping-form/index.tsx | 4 +- .../components/table-quantity-selector.tsx | 2 +- .../domain/orders/details/address-modal.tsx | 6 +- .../details/claim/register-claim-menu.tsx | 4 +- .../src/domain/orders/details/email-modal.tsx | 8 +-- .../orders/details/mark-shipped/index.tsx | 14 ++-- .../domain/orders/details/order-line/edit.tsx | 36 +++++----- .../domain/orders/details/refund/index.tsx | 16 ++--- .../domain/orders/details/returns/index.tsx | 10 +-- .../orders/details/rma-sub-modals/address.tsx | 13 ++-- .../details/rma-sub-modals/products.tsx | 6 +- .../details/rma-sub-modals/return-reasons.tsx | 10 +-- .../src/domain/orders/details/swap/create.tsx | 20 +++--- .../orders/details/templates/address.tsx | 5 +- .../details/templates/display-total.tsx | 3 +- .../details/templates/fulfillment-status.tsx | 2 - .../orders/details/templates/fulfillment.tsx | 3 +- .../orders/details/templates/order-status.tsx | 2 - .../details/templates/payment-actionables.tsx | 1 - .../details/templates/payment-details.tsx | 1 - .../details/templates/payment-status.tsx | 2 - .../details/templates/tracking-link.tsx | 3 +- .../domain/orders/draft-orders/details.tsx | 44 ++++++------ .../src/domain/orders/draft-orders/index.tsx | 4 +- .../ui/src/domain/orders/edit/context.tsx | 4 +- .../ui/src/domain/orders/edit/modal.tsx | 24 +++---- .../src/domain/orders/edit/variants-table.tsx | 18 ++--- .../orders/new/components/billing-details.tsx | 9 ++- .../new/components/custom-item-sub-modal.tsx | 4 +- .../domain/orders/new/components/items.tsx | 34 ++++----- .../orders/new/components/select-shipping.tsx | 14 ++-- .../ui/src/domain/orders/new/form/index.tsx | 8 +-- .../pricing/details/sections/header.tsx | 8 +-- .../edit-prices-overrides/index.tsx | 10 +-- .../product-variant-leaf.tsx | 4 +- .../sections/prices-details/edit-prices.tsx | 2 +- .../details/sections/prices-details/index.tsx | 1 - .../prices-details/prices-table/index.tsx | 12 ++-- .../prices-table/use-columns.tsx | 6 +- .../admin-ui/ui/src/domain/pricing/index.tsx | 4 +- .../admin-ui/ui/src/domain/pricing/new.tsx | 1 - .../src/domain/pricing/pricing-form/index.tsx | 3 +- .../pricing-form/sections/configuration.tsx | 19 ++--- .../pricing/pricing-form/sections/general.tsx | 3 +- .../pricing/pricing-form/sections/type.tsx | 3 +- .../pricing/pricing-form/types/index.ts | 4 +- .../components/customs-form/index.tsx | 3 +- .../components/dimensions-form/index.tsx | 3 +- .../components/discountable-form/index.tsx | 3 +- .../components/general-form/index.tsx | 5 +- .../products/components/media-form/index.tsx | 28 ++++---- .../components/organize-form/index.tsx | 1 - .../products/components/prices-form/index.tsx | 2 +- .../components/prices-form/nested-price.tsx | 23 +++---- .../prices-form/price-form-input.tsx | 11 ++- .../sales-channels-modal/add-screen.tsx | 2 +- .../components/sales-channels-modal/index.tsx | 2 +- .../components/sales-channels-modal/table.tsx | 20 +++--- .../use-sales-channels-modal.tsx | 5 +- .../components/thumbnail-form/index.tsx | 13 ++-- .../create-flow-variant-form/index.tsx | 3 +- .../variant-general-form/index.tsx | 3 +- .../variant-prices-form/index.tsx | 1 - .../variant-select-options-form/index.tsx | 3 +- .../variant-stock-form/index.tsx | 32 ++++----- .../ui/src/domain/products/edit/index.tsx | 8 +-- .../sections/attributes/attribute-modal.tsx | 4 +- .../edit/sections/attributes/index.tsx | 11 ++- .../edit/sections/general/channels-modal.tsx | 1 - .../edit/sections/general/general-modal.tsx | 2 +- .../products/edit/sections/media/index.tsx | 7 +- .../edit/sections/media/media-modal.tsx | 4 +- .../edit/sections/thumbnail/index.tsx | 9 ++- .../sections/thumbnail/thumbnail-modal.tsx | 4 +- .../variants/edit-variant-inventory-modal.tsx | 2 +- .../variants/edit-variants-modal/index.tsx | 6 +- .../use-edit-variants-modal.tsx | 5 +- .../edit-variants-modal/variant-card.tsx | 14 ++-- .../edit/sections/variants/options-modal.tsx | 26 ++++--- .../src/domain/products/filter-dropdown.tsx | 14 ++-- .../products/new/add-sales-channels.tsx | 2 +- .../products/new/add-variants/index.tsx | 14 ++-- .../new/add-variants/new-variant/index.tsx | 22 +++--- .../ui/src/domain/products/overview/index.tsx | 2 +- .../modals/add-sales-channels.tsx | 10 +-- .../publishable-api-keys/modals/details.tsx | 6 +- .../modals/manage-sales-channels.tsx | 32 ++++----- .../tables/publishable-api-keys-table.tsx | 14 ++-- .../tables/sales-channels-table.tsx | 10 +-- .../sales-channels/form/add-sales-channel.tsx | 24 +++---- .../form/edit-sales-channel.tsx | 6 +- .../domain/sales-channels/pages/details.tsx | 42 +++++------ .../domain/sales-channels/tables/config.tsx | 8 +-- .../sales-channels/tables/placeholder.tsx | 8 +-- .../domain/sales-channels/tables/product.tsx | 10 +-- .../components/currency-tax-setting.tsx | 10 +-- .../default-currency-selector.tsx | 11 ++- .../default-store-currency/index.tsx | 3 +- .../add-currencies-screen.tsx | 4 +- .../current-currencies-screen.tsx | 20 +++--- .../edit-currencies-modal.tsx | 7 +- .../components/store-currencies/index.tsx | 1 - .../use-currency-table-columns.tsx | 6 +- .../ui/src/domain/settings/details.tsx | 2 +- .../edit-user-information-modal.tsx | 10 +-- .../edit-user-information/index.tsx | 12 ++-- .../usage-insights/index.tsx | 7 +- .../usage-insights/usage-insights-modal.tsx | 6 +- .../region-form/region-details-form.tsx | 4 +- .../region-form/region-providers-form.tsx | 3 +- .../shipping-option-card/edit-modal.tsx | 6 +- .../components/shipping-option-card/index.tsx | 11 ++- .../components/shipping-option-form/index.tsx | 12 ++-- .../regions/edit/general-section/index.tsx | 14 ++-- .../domain/settings/regions/edit/index.tsx | 7 +- .../create-return-shipping-option.modal.tsx | 3 +- .../edit/return-shipping-options/index.tsx | 5 +- .../create-shipping-option-modal.tsx | 3 +- .../regions/edit/shipping-options/index.tsx | 5 +- .../ui/src/domain/settings/regions/index.tsx | 6 +- .../regions/region-overview/region-card.tsx | 3 +- .../return-reasons/create-reason-modal.tsx | 9 ++- .../domain/settings/return-reasons/detail.tsx | 7 +- .../domain/settings/return-reasons/index.tsx | 2 +- .../ui/src/domain/settings/taxes/details.tsx | 2 +- .../src/domain/settings/taxes/edit-form.tsx | 10 +-- .../settings/taxes/edit-tax-rate-details.tsx | 7 +- .../ui/src/domain/settings/taxes/edit.tsx | 2 +- .../ui/src/domain/settings/taxes/index.tsx | 2 +- .../ui/src/domain/settings/taxes/new.tsx | 8 +-- .../settings/taxes/product-selector.tsx | 4 +- .../settings/taxes/product-type-selector.tsx | 2 +- .../src/domain/settings/taxes/region-form.tsx | 16 ++--- .../taxes/shipping-option-selector.tsx | 2 +- .../domain/settings/taxes/tax-rule-item.tsx | 7 +- .../settings/taxes/tax-rule-selector.tsx | 4 +- .../settings/taxes/use-tax-rate-columns.tsx | 2 +- .../ui/src/domain/settings/users/index.tsx | 4 +- .../admin-ui/ui/src/hooks/use-clipboard.js | 2 +- .../ui/src/hooks/use-computed-height.ts | 2 +- .../ui/src/hooks/use-imperative-dialog.tsx | 12 ++-- .../ui/src/hooks/use-notification.tsx | 1 - .../ui/src/hooks/use-query-filters.ts | 7 +- packages/admin-ui/ui/src/hooks/use-scroll.ts | 2 +- packages/admin-ui/ui/src/pages/404.tsx | 1 - packages/admin-ui/ui/src/pages/invite.tsx | 22 +++--- packages/admin-ui/ui/src/pages/login.tsx | 6 +- .../admin-ui/ui/src/pages/reset-password.tsx | 18 ++--- .../admin-ui/ui/src/services/analytics.ts | 6 +- .../ui/src/types/react-table-config.d.ts | 26 +++---- .../admin-ui/ui/src/utils/bytes-converter.ts | 2 +- packages/admin-ui/ui/src/utils/callAll.ts | 6 +- .../admin-ui/ui/src/utils/format-address.js | 2 +- .../admin-ui/ui/src/utils/get-error-status.ts | 16 +++-- .../ui/src/utils/get-relative-time.ts | 15 ++-- .../ui/src/utils/handle-form-error.tsx | 3 +- packages/admin-ui/ui/src/utils/images.ts | 6 +- packages/admin-ui/ui/src/utils/nested-form.ts | 32 +++++---- .../utils/sales-channel-compare-operator.ts | 22 +++--- packages/admin-ui/ui/src/vite-env.d.ts | 2 +- 432 files changed, 1593 insertions(+), 1767 deletions(-) diff --git a/packages/admin-ui/ui/src/components/atoms/avatar/index.tsx b/packages/admin-ui/ui/src/components/atoms/avatar/index.tsx index 9912beabe9..f7a0c20845 100644 --- a/packages/admin-ui/ui/src/components/atoms/avatar/index.tsx +++ b/packages/admin-ui/ui/src/components/atoms/avatar/index.tsx @@ -34,18 +34,18 @@ const Avatar: React.FC = ({ return ( diff --git a/packages/admin-ui/ui/src/components/atoms/back-button/index.tsx b/packages/admin-ui/ui/src/components/atoms/back-button/index.tsx index bdeba61236..66f697690a 100644 --- a/packages/admin-ui/ui/src/components/atoms/back-button/index.tsx +++ b/packages/admin-ui/ui/src/components/atoms/back-button/index.tsx @@ -1,5 +1,4 @@ import clsx from "clsx" -import React from "react" import { useNavigate } from "react-router-dom" import ArrowLeftIcon from "../../fundamentals/icons/arrow-left-icon" @@ -18,7 +17,7 @@ const BackButton = ({ path, label = "Go back", className }: Props) => { }} className={clsx("px-small py-xsmall", className)} > -
+
{label}
diff --git a/packages/admin-ui/ui/src/components/atoms/checkbox/index.tsx b/packages/admin-ui/ui/src/components/atoms/checkbox/index.tsx index 2e4fa8dca7..6d37c2627c 100644 --- a/packages/admin-ui/ui/src/components/atoms/checkbox/index.tsx +++ b/packages/admin-ui/ui/src/components/atoms/checkbox/index.tsx @@ -12,13 +12,13 @@ const Checkbox = React.forwardRef( useImperativeHandle(ref, () => checkboxRef.current) return (