Skip to content

Commit

Permalink
add List Item to advanced components
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Tilsch committed Jun 3, 2024
1 parent bf0eac0 commit effed6d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions apps/exhibition-live/components/google/SpreadSheetView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ import {
import { encodeIRI, filterUndefOrNull } from "@slub/edb-ui-utils";
import { useQuery } from "@slub/edb-state-hooks";
import { OwnColumnDesc } from "./types";
import TypedListItem from "../content/list/TypedListItem";
import HorizontalNonLinearStepper from "../form/wizard/HorizontalNonLinearStepper";
import {
useCRUDWithQueryClient,
Expand All @@ -68,6 +67,7 @@ import {
DeclarativeMatchBasedFlatMappings,
} from "@slub/edb-ui-utils";
import { CRUDFunctions } from "@slub/edb-core-types";
import { SimpleListItem } from "@slub/edb-advanced-components";

//we will create a cashed worksheet, were selectively rows are preloaded and once loaded use for a certain stale time
type CachedWorkSheet = {
Expand Down Expand Up @@ -454,7 +454,7 @@ const MappedItem = ({
) : (
<List>
{data?.["@type"] && (
<TypedListItem index={index} data={data} disableLoad={true} />
<SimpleListItem index={index} data={data} disableLoad={true} />
)}
</List>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ interface OwnProps {
disableLoad?: boolean;
}

type Props = OwnProps;
export type TypedListItemProps = OwnProps;

const TypedListItem: FunctionComponent<Props> = ({
export const SimpleListItem: FunctionComponent<TypedListItemProps> = ({
index,
data,
disableLoad,
Expand Down Expand Up @@ -67,5 +67,3 @@ const TypedListItem: FunctionComponent<Props> = ({
</ListItem>
);
};

export default TypedListItem;
1 change: 1 addition & 0 deletions packages/advanced-components/src/show/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ export * from "./EntityDetailCard";
export * from "./EntityDetailElement";
export * from "./EntityDetailListItem";
export * from "./EntityDetailModal";
export * from "./SimpleListItem";

0 comments on commit effed6d

Please sign in to comment.