Modified how template list is generated to be a function to allow checking whether the templates can be printed.
This commit is contained in:
@@ -62,9 +62,9 @@ export default function ShopTemplatesListContainer({ visibleState }) {
|
||||
>
|
||||
<Skeleton title={false} loading={item.loading} active>
|
||||
<div style={{ display: "flex", flexDirection: "column" }}>
|
||||
<div>{TemplateList[item.name].title}</div>
|
||||
<div>{TemplateList[item.name].description}</div>
|
||||
<div>{TemplateList[item.name].drivingid}</div>
|
||||
<div>{TemplateList()[item.name].title}</div>
|
||||
<div>{TemplateList()[item.name].description}</div>
|
||||
<div>{TemplateList()[item.name].drivingid}</div>
|
||||
</div>
|
||||
</Skeleton>
|
||||
</List.Item>
|
||||
|
||||
Reference in New Issue
Block a user