Options panels refactoring (#196)
* Refactor library options to match chapter options using shared component * Disable some eslint rules * Cleanup SourceOptions layout to use same components as other panels
This commit is contained in:
@@ -12,10 +12,8 @@ import { Link } from 'react-router-dom';
|
||||
export default function ListItemLink(props: ListItemProps<Link, { directLink?: boolean }>) {
|
||||
const { directLink, to } = props;
|
||||
if (directLink) {
|
||||
// eslint-disable-next-line react/jsx-props-no-spreading
|
||||
return <ListItem button component="a" href={to} {...props} />;
|
||||
}
|
||||
|
||||
// eslint-disable-next-line react/jsx-props-no-spreading
|
||||
return <ListItem button component={Link} {...props} />;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user