diff --git a/src/components/ceviriler/components.js b/src/components/ceviriler/components.js index 6d8a026..55de73c 100644 --- a/src/components/ceviriler/components.js +++ b/src/components/ceviriler/components.js @@ -67,7 +67,6 @@ const useStyles = makeStyles((theme) => ({ }, }, BackgroundImageOverlay: { - background: theme.palette.background.default, //eslint-disable-next-line background: `linear-gradient(90deg, ${theme.palette.background.default} 0%, ${theme.palette.background.default} 35%, ${fade(theme.palette.background.default, 0)} 50%)`, position: "absolute", diff --git a/src/components/header/header.js b/src/components/header/header.js index 6a6881f..7a06e3f 100644 --- a/src/components/header/header.js +++ b/src/components/header/header.js @@ -218,7 +218,7 @@ export default function MiniDrawer() { text: "Sıkça Sorulan Sorular", shortText: "SSS", link: faqPage, - show: process.env.REACT_APP_SSS_PAGE === true ? true : false, + show: process.env.REACT_APP_SSS_PAGE === "true" ? true : false, icon: }, { @@ -230,8 +230,6 @@ export default function MiniDrawer() { ]) useEffect(() => { - console.log(ExtraPagesList) - if (ExtraPagesList.length) { const newMenus = [] diff --git a/src/components/index/featured/featured.js b/src/components/index/featured/featured.js index 0c5f8eb..9e7c0b7 100644 --- a/src/components/index/featured/featured.js +++ b/src/components/index/featured/featured.js @@ -63,7 +63,6 @@ const useStyles = makeStyles(theme => ({ }, LogoContainer: { maxWidth: 400, - maxHeight: 200, width: "100%" }, GenresContainer: { diff --git a/src/components/index/latest/latestanimanga.js b/src/components/index/latest/latestanimanga.js index 79f27e5..da6978e 100644 --- a/src/components/index/latest/latestanimanga.js +++ b/src/components/index/latest/latestanimanga.js @@ -121,7 +121,7 @@ const useStyles = makeStyles(theme => ({ export const LoadingDivAniManga = (key) => { return ( - + ) diff --git a/src/components/index/latest/latestmangaepisode.js b/src/components/index/latest/latestmangaepisode.js index 9317631..0bfcd36 100644 --- a/src/components/index/latest/latestmangaepisode.js +++ b/src/components/index/latest/latestmangaepisode.js @@ -1,7 +1,7 @@ import React from 'react' import propTypes from 'prop-types' import { Link } from 'react-router-dom' -import { episodePage, mangaEpisodePage } from '../../../config/front-routes' +import { mangaEpisodePage } from '../../../config/front-routes' import { Grid, Typography, makeStyles } from '@material-ui/core' import { grey } from '@material-ui/core/colors' diff --git a/src/config/episode-link-overrides.js b/src/config/episode-link-overrides.js index b2aab8c..601d873 100644 --- a/src/config/episode-link-overrides.js +++ b/src/config/episode-link-overrides.js @@ -1,7 +1,7 @@ function getParameterByName(name, url) { if (!url) url = window.location.href; //eslint-disable-next-line - name = name.replace(/[\[\]]/g, '\\$&'); + name = name.replace(/[\[\]]/g, '\\$&'); // lgtm [js/incomplete-sanitization] var regex = new RegExp('[?&]' + name + '(=([^]*)|&|#|$)'), results = regex.exec(url); if (!results) return null; diff --git a/src/config/theming/borders.js b/src/config/theming/borders.js deleted file mode 100644 index 9f0c51f..0000000 --- a/src/config/theming/borders.js +++ /dev/null @@ -1,6 +0,0 @@ -const borders = [ - ".10rem", //Index general - ".75rem" -] - -export default borders \ No newline at end of file diff --git a/src/config/theming/index.js b/src/config/theming/index.js index 7874554..b811bd7 100644 --- a/src/config/theming/index.js +++ b/src/config/theming/index.js @@ -1,4 +1,4 @@ -import { createMuiTheme } from '@material-ui/core/styles'; +import { createMuiTheme, responsiveFontSizes } from '@material-ui/core/styles'; import merge from 'lodash-es/merge' import darkTheme from './dark/index' @@ -80,7 +80,15 @@ const general = { defaultMarginMobile: "80px 12px 24px", defaultMarginOverride: "-32px -56px -24px", defaultMarginMobileOverride: "-24px -12px -24px", - defaultBorderRadius: 4 + defaultBorderRadius: 4, + MuiToolbar: { + gutters: { + ['@media (min-width:600px)']: { + paddingLeft: 29 + } + } + } + }, transitions: { duration: { @@ -97,7 +105,7 @@ export default function getTheme(type) { switch (type) { case type: { const theme = merge(general, type === "dark" ? darkTheme : lightTheme) - return createMuiTheme(theme) + return responsiveFontSizes(createMuiTheme(theme)) } default: return false diff --git a/src/config/theming/shadows.js b/src/config/theming/shadows.js deleted file mode 100644 index ad831f0..0000000 --- a/src/config/theming/shadows.js +++ /dev/null @@ -1,5 +0,0 @@ -const text_shadows = [ - "0px 0px 6px rgba(0, 0, 0, 1)" -] - -export default { text_shadows } \ No newline at end of file diff --git a/src/pages/ara/index.js b/src/pages/ara/index.js index a4910dd..0ba5f88 100644 --- a/src/pages/ara/index.js +++ b/src/pages/ara/index.js @@ -5,7 +5,6 @@ import Metatags from '../../components/helmet/index' import TextField from '@material-ui/core/TextField' import InfiniteScroll from 'react-infinite-scroll-component' import AwesomeDebouncePromise from 'awesome-debounce-promise'; -import LazyLoad from 'react-lazyload'; import axios from '../../config/axios/axios' import { getGenresList, getFullSearchList } from '../../config/api-routes' @@ -57,7 +56,6 @@ const searchGenresAPI = async (data, genres) => { const searchGenresAPIDebounced = AwesomeDebouncePromise(searchGenresAPI, 500); export default function SearchPage(props) { - const theme = useTheme() const classes = useStyles() const [offset, setOffset] = useState(1) @@ -316,7 +314,7 @@ export default function SearchPage(props) { {genreMappedData} : - loadingGenre + loadingGenre // lgtm [js/trivial-conditional] ? { - handleCenteringPage(image) + onLoad={_ => { + handleCenteringPage() }} /> {/*Eğer SSS sayfası kapatılmışsa, gelen istekleri ana sayfaya yönlendir*/} - {process.env.REACT_APP_SSS_PAGE === true ? "" : } + {process.env.REACT_APP_SSS_PAGE === "true" ? "" : }