Migrate inventory and reports to the SPA
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
26 files changed
+1090
-18
No files matched your search
@@ -1,6 +1,6 @@
|
||||
import React from "react";
|
||||
|
||||
import { OrderLineInput, SchemaProduct as Product } from "../../types";
|
||||
import { AllProductsQuery, OrderLineInput } from "../../types";
|
||||
import { UserCard } from "../users/UserCard";
|
||||
import { ProductCard } from "./ProductCard";
|
||||
import styles from "./Register.module.css";
|
||||
@@ -55,7 +55,7 @@ const Register = (): JSX.Element => {
|
||||
<section className={styles.productListSection}>
|
||||
<h2>Kjøper hva?</h2>
|
||||
<div className={styles.productList}>
|
||||
{products.map((product: Omit<Product, "userCounts">) => (
|
||||
{products.map((product: AllProductsQuery["allProducts"][number]) => (
|
||||
<ProductCard
|
||||
key={product.id}
|
||||
product={product}
|
||||
|
||||
Reference in new issue
Block a user