Skip to content

Commit

Permalink
Fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Iyzyman committed Jan 24, 2024
1 parent 256be84 commit 54f1256
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 6 deletions.
3 changes: 0 additions & 3 deletions apps/cms/src/@types/IProduct.ts

This file was deleted.

2 changes: 1 addition & 1 deletion apps/cms/src/admin/utils/RenderCellFactory.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export class RenderCellFactory {
return ImageComponentCell;
}
if (key === "stock") {
const ObjectComponent: React.FC<{ data: any }> = ({ data }) => (
const ObjectComponent: React.FC<{ data: string }> = ({ data }) => (
<div>
{Object.entries(data).map(([subKey, value], index) => (
<div key={index}>
Expand Down
1 change: 0 additions & 1 deletion apps/cms/src/admin/views/MerchProducts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { RenderCellFactory } from "../utils/RenderCellFactory";
import SortedColumn from "../utils/SortedColumn";
import { Table } from "payload/dist/admin/components/elements/Table";
import { Product } from "../../@types/Product";
import { IProduct } from "../../@types/IProduct";
import ProductsApi from "../../apis/products.api";

const MerchProducts: AdminView = ({ user, canAccessAdmin }) => {
Expand Down
1 change: 0 additions & 1 deletion apps/cms/src/apis/products.api.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { IProduct } from "../@types/IProduct";
import { Product } from "../@types/Product";
// todo turn into real api
class ProductsApi {
Expand Down

0 comments on commit 54f1256

Please sign in to comment.