Customize recommendations (#2592)

* refactored common code in recommendation row
* Implement front page options in config
* Allow customisation from front page
* Rename recommendations to front page
* Add generic UI settings
* Support adding premade filters

Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
This commit is contained in:
CJ
2022-06-13 19:34:04 -05:00
committed by GitHub
parent ff724d82cc
commit 9264c15540
38 changed files with 1549 additions and 292 deletions

View File

@@ -0,0 +1,24 @@
import React, { PropsWithChildren } from "react";
interface IProps {
className?: string;
header: String;
link: JSX.Element;
}
export const RecommendationRow: React.FC<PropsWithChildren<IProps>> = ({
className,
header,
link,
children,
}) => (
<div className={`recommendation-row ${className}`}>
<div className="recommendation-row-head">
<div>
<h2>{header}</h2>
</div>
{link}
</div>
{children}
</div>
);