Skip to content

Commit

Permalink
Add a story to show UI when linkType={false}
Browse files Browse the repository at this point in the history
  • Loading branch information
erwanMarmelab committed Nov 12, 2024
1 parent 12552f3 commit 88c20f8
Showing 1 changed file with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,28 @@ export const FullApp = () => (
</AdminContext>
);

export const AnyLink = () => (
<AdminContext
dataProvider={dataProvider}
i18nProvider={polyglotI18nProvider(() => defaultMessages, 'en')}
>
<AdminUI>
<Resource
name="books"
list={() => (
<List>
<SimpleList
primaryText={record => record.title}
secondaryText={record => record.author}
linkType={false}
/>
</List>
)}
/>
</AdminUI>
</AdminContext>
);

export const NoPrimaryText = () => (
<AdminContext
dataProvider={dataProvider}
Expand Down

0 comments on commit 88c20f8

Please sign in to comment.