Lint all the things
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import { useQuery } from "@apollo/client";
|
||||
import { Button, Drawer, List } from "antd";
|
||||
import React from "react";
|
||||
import { QUERY_CUSTOM_TEMPLATES } from "../../graphql/templates.queries";
|
||||
import AlertComponent from "../alert/alert.component";
|
||||
import Skeleton from "../loading-skeleton/loading-skeleton.component";
|
||||
@@ -46,12 +45,14 @@ export default function ShopTemplatesListContainer({ openState }) {
|
||||
renderItem={(item) => (
|
||||
<List.Item
|
||||
actions={[
|
||||
<Button onClick={() => handleEdit(item)}>{t("general.actions.edit")}</Button>,
|
||||
<ShopTemplateDeleteComponent templateId={item.id} refetch={refetch} />
|
||||
<Button key="editButton" onClick={() => handleEdit(item)}>
|
||||
{t("general.actions.edit")}
|
||||
</Button>,
|
||||
<ShopTemplateDeleteComponent key="shopTemplateDelete" templateId={item.id} refetch={refetch} />
|
||||
]}
|
||||
>
|
||||
<Skeleton title={false} loading={item.loading} active>
|
||||
<div rootStyle={{ display: "flex", flexDirection: "column" }}>
|
||||
<div style={{ display: "flex", flexDirection: "column" }}>
|
||||
<div>{TemplateList()[item.name].title}</div>
|
||||
<div>{TemplateList()[item.name].description}</div>
|
||||
<div>{TemplateList()[item.name].drivingid}</div>
|
||||
|
||||
Reference in New Issue
Block a user