1
0
mirror of https://github.com/kremalicious/portfolio.git synced 2024-12-22 09:13:19 +01:00
This commit is contained in:
Matthias Kretschmann 2022-11-17 18:07:54 +00:00
parent f05d8a9f50
commit 02266eaecb
Signed by: m
GPG Key ID: 606EEEF3C479A91F
11 changed files with 7 additions and 19 deletions

View File

@ -1,4 +1,3 @@
import React from 'react'
import { render } from '@testing-library/react'
import Availability from '.'

View File

@ -1,4 +1,3 @@
import React from 'react'
import { render, screen } from '@testing-library/react'
import HostnameCheck from '.'

View File

@ -1,4 +1,3 @@
import React from 'react'
import { render } from '@testing-library/react'
import Icon from '.'

View File

@ -1,5 +1,3 @@
import React from 'react'
// https://featherstyles.com
// import * as Feather from '@kremalicious/react-feather'
import {

View File

@ -1,4 +1,3 @@
import React from 'react'
import { render, act } from '@testing-library/react'
import Meta from '.'

View File

@ -1,4 +1,3 @@
import React from 'react'
import { render } from '@testing-library/react'
import Networks from '.'

View File

@ -1,4 +1,4 @@
import React, { forwardRef } from 'react'
import { forwardRef, ForwardedRef } from 'react'
import Link from 'next/link'
import ProjectImage from '../ProjectImage'
import styles from './index.module.css'
@ -7,7 +7,7 @@ import ProjectType from '../../interfaces/project'
export const Project = forwardRef(
(
{ project }: { project: ProjectType },
ref: React.ForwardedRef<HTMLAnchorElement>
ref: ForwardedRef<HTMLAnchorElement>
) => (
<Link
className={`${styles.item} ${ref ? styles.current : null}`}

View File

@ -1,4 +1,3 @@
import React from 'react'
import Repo from '../../interfaces/repo'
import Icon from '../Icon'
import styles from './index.module.css'

View File

@ -1,15 +1,11 @@
import type { AppProps, NextWebVitalsMetric } from 'next/app'
import type { AppProps } from 'next/app'
import '../styles/global.css'
import Site from '../layouts/Site'
export default function MyApp({ Component, pageProps, router }: AppProps) {
return (
<Site>
<Component {...pageProps} key={router.asPath} />
<Component {...pageProps} />
</Site>
)
}
// export function reportWebVitals(metric: NextWebVitalsMetric) {
// console.info(metric)
// }

View File

@ -1,6 +1,6 @@
import React, { SVGProps } from 'react'
import { SVGProps, forwardRef } from 'react'
const SvgrMock = React.forwardRef<SVGSVGElement, SVGProps<SVGSVGElement>>(
const SvgrMock = forwardRef<SVGSVGElement, SVGProps<SVGSVGElement>>(
(props, ref) => <svg ref={ref} {...props} />
)

View File

@ -7,7 +7,7 @@ import './__mocks__/matchMedia'
jest.mock('next/router', () => ({
useRouter: jest.fn().mockImplementation(() => ({
route: '/',
asPath: '/'
pathname: '/'
}))
}))