git sync for colleagues.
All in 1 big commit :)... Do as I say... not as I do (in my private stuff anyway)
This commit is contained in:
11
src/components/filters/filter-list-item.tsx
Normal file
11
src/components/filters/filter-list-item.tsx
Normal file
@@ -0,0 +1,11 @@
|
||||
import React, { FunctionComponent } from "react";
|
||||
|
||||
type Props = { label: string; link?: string; onClick?: () => {} };
|
||||
|
||||
export const FilterListItem: FunctionComponent<Props> = ({ label, link, onClick }) => {
|
||||
return (
|
||||
<li onClick={onClick} key={link} className="filter">
|
||||
{link !== undefined ? <a href={link}>{label}</a> : label}
|
||||
</li>
|
||||
);
|
||||
};
|
11
src/components/filters/filter-list.tsx
Normal file
11
src/components/filters/filter-list.tsx
Normal file
@@ -0,0 +1,11 @@
|
||||
import React, { FunctionComponent } from "react";
|
||||
|
||||
type Props = {};
|
||||
|
||||
export const FilterList: FunctionComponent<Props> = ({ children }) => {
|
||||
return (
|
||||
<ul id="filter-list" className="clearfix">
|
||||
{children}
|
||||
</ul>
|
||||
);
|
||||
};
|
Reference in New Issue
Block a user