add some missing stories for ui-components

This commit is contained in:
Eduard Heimbuch
2020-05-06 15:58:00 +02:00
parent cb2916a58e
commit abcbc6beac
11 changed files with 952 additions and 30 deletions

View File

@@ -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", () => {