Remove "directLink" prop (#488)

Is not required anymore since "Link" of react-router-dom is a "<a>" element now anyway.
It also caused the following warning

"react-dom.development.js:86  Warning: React does not recognize the `directLink` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `directlink` instead. If you accidentally passed it from a parent component, remove it from the DOM element"
This commit is contained in:
schroda
2023-12-09 14:16:44 +01:00
committed by GitHub
parent ad0f072651
commit db5d3ff7c0
3 changed files with 5 additions and 14 deletions

View File

@@ -93,16 +93,16 @@ export function About() {
</ListSubheader>
}
>
<ListItemLink directLink to={aboutServer.github}>
<ListItemLink to={aboutServer.github}>
<ListItemText primary={t('settings.about.server.label.github')} secondary={aboutServer.github} />
</ListItemLink>
<ListItemLink directLink to="https://github.com/Suwayomi/Tachidesk-WebUI">
<ListItemLink to="https://github.com/Suwayomi/Tachidesk-WebUI">
<ListItemText
primary={t('settings.about.webui.label.github')}
secondary="https://github.com/Suwayomi/Tachidesk-WebUI"
/>
</ListItemLink>
<ListItemLink directLink to={aboutServer.discord}>
<ListItemLink to={aboutServer.discord}>
<ListItemText primary={t('global.label.discord')} secondary={aboutServer.discord} />
</ListItemLink>
</List>