mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-11 07:55:47 +01:00
add some missing stories for ui-components
This commit is contained in:
@@ -60,10 +60,10 @@ const bindQuickLink = (binder: Binder, extension: ReactNode) => {
|
||||
});
|
||||
};
|
||||
|
||||
const withBinder = (binder: Binder, repository: Repository) => {
|
||||
const withBinder = (binder: Binder, repo: Repository) => {
|
||||
return (
|
||||
<BinderContext.Provider value={binder}>
|
||||
<RepositoryEntry repository={repository} baseDate={baseDate} />
|
||||
<RepositoryEntry repository={repo} baseDate={baseDate} />
|
||||
</BinderContext.Provider>
|
||||
);
|
||||
};
|
||||
@@ -87,7 +87,7 @@ storiesOf("RepositoryEntry", module)
|
||||
})
|
||||
.add("Before Title EP", () => {
|
||||
const binder = new Binder("title");
|
||||
bindBeforeTitle(binder, <i className="fas fa-star" />);
|
||||
bindBeforeTitle(binder, <i className="far fa-star" />);
|
||||
return withBinder(binder, repository);
|
||||
})
|
||||
.add("Quick Link EP", () => {
|
||||
|
||||
Reference in New Issue
Block a user