implement source configuration

This commit is contained in:
Aria Moradi
2021-09-13 19:18:21 +04:30
parent 3b959e1f6d
commit 3d3c2a29ca
7 changed files with 347 additions and 36 deletions

View File

@@ -24,7 +24,10 @@ export default function SourceMangas(props: { popular: boolean }) {
const [lastPageNum, setLastPageNum] = useState<number>(1);
useEffect(() => {
setTitle('Source');
setTitle('Source'); // title is deligated to `MangaGrid` but we set it here once
}, []);
useEffect(() => {
setAction(
<>
{isConfigurable && (
@@ -34,8 +37,6 @@ export default function SourceMangas(props: { popular: boolean }) {
edge="end"
color="inherit"
size="large"
// TODO: enable source configuration
style={{ display: 'none' }}
>
<SettingsIcon />
</IconButton>