Showing 6 of 12 total issues
Function LandingPage
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const LandingPage = () => {
const { name, roles, socialLinks, deterministic } = useSiteQuery();
return (
<Section.Container id={SECTION.home} Background={Background}>
Function useMediumQuery
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const useMediumQuery = (): Response => {
const { mediumUser } = useStaticQuery<QueryResponse>(graphql`
query MediumPostQuery {
mediumUser {
id
Function Header
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const Header = () => {
const { profile } = useHelmetQuery();
return (
<StyledHeadroom>
Function Footer
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const Footer = () => {
const { name, socialLinks } = useSiteQuery();
return (
<Box p={[2, 3]} backgroundColor="primary" id="footer" as="footer">
Function useProjectsQuery
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const useProjectsQuery = (): Project[] => {
const { contentfulAbout } = useStaticQuery<QueryResponse>(graphql`
query ProjectsQuery {
contentfulAbout {
projects {
Function useAboutMeQuery
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const useAboutMeQuery = (): AboutMe => {
const {
contentfulAbout: { aboutMe, profile },
} = useStaticQuery<QueryResponse>(graphql`
query AboutMeQuery {