mirror of
https://github.com/kremalicious/portfolio.git
synced 2024-12-22 17:23:22 +01:00
cleanup
This commit is contained in:
parent
f05d8a9f50
commit
02266eaecb
@ -1,4 +1,3 @@
|
|||||||
import React from 'react'
|
|
||||||
import { render } from '@testing-library/react'
|
import { render } from '@testing-library/react'
|
||||||
import Availability from '.'
|
import Availability from '.'
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
import React from 'react'
|
|
||||||
import { render, screen } from '@testing-library/react'
|
import { render, screen } from '@testing-library/react'
|
||||||
import HostnameCheck from '.'
|
import HostnameCheck from '.'
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
import React from 'react'
|
|
||||||
import { render } from '@testing-library/react'
|
import { render } from '@testing-library/react'
|
||||||
|
|
||||||
import Icon from '.'
|
import Icon from '.'
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
import React from 'react'
|
|
||||||
|
|
||||||
// https://featherstyles.com
|
// https://featherstyles.com
|
||||||
// import * as Feather from '@kremalicious/react-feather'
|
// import * as Feather from '@kremalicious/react-feather'
|
||||||
import {
|
import {
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
import React from 'react'
|
|
||||||
import { render, act } from '@testing-library/react'
|
import { render, act } from '@testing-library/react'
|
||||||
import Meta from '.'
|
import Meta from '.'
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
import React from 'react'
|
|
||||||
import { render } from '@testing-library/react'
|
import { render } from '@testing-library/react'
|
||||||
import Networks from '.'
|
import Networks from '.'
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import React, { forwardRef } from 'react'
|
import { forwardRef, ForwardedRef } from 'react'
|
||||||
import Link from 'next/link'
|
import Link from 'next/link'
|
||||||
import ProjectImage from '../ProjectImage'
|
import ProjectImage from '../ProjectImage'
|
||||||
import styles from './index.module.css'
|
import styles from './index.module.css'
|
||||||
@ -7,7 +7,7 @@ import ProjectType from '../../interfaces/project'
|
|||||||
export const Project = forwardRef(
|
export const Project = forwardRef(
|
||||||
(
|
(
|
||||||
{ project }: { project: ProjectType },
|
{ project }: { project: ProjectType },
|
||||||
ref: React.ForwardedRef<HTMLAnchorElement>
|
ref: ForwardedRef<HTMLAnchorElement>
|
||||||
) => (
|
) => (
|
||||||
<Link
|
<Link
|
||||||
className={`${styles.item} ${ref ? styles.current : null}`}
|
className={`${styles.item} ${ref ? styles.current : null}`}
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
import React from 'react'
|
|
||||||
import Repo from '../../interfaces/repo'
|
import Repo from '../../interfaces/repo'
|
||||||
import Icon from '../Icon'
|
import Icon from '../Icon'
|
||||||
import styles from './index.module.css'
|
import styles from './index.module.css'
|
||||||
|
@ -1,15 +1,11 @@
|
|||||||
import type { AppProps, NextWebVitalsMetric } from 'next/app'
|
import type { AppProps } from 'next/app'
|
||||||
import '../styles/global.css'
|
import '../styles/global.css'
|
||||||
import Site from '../layouts/Site'
|
import Site from '../layouts/Site'
|
||||||
|
|
||||||
export default function MyApp({ Component, pageProps, router }: AppProps) {
|
export default function MyApp({ Component, pageProps, router }: AppProps) {
|
||||||
return (
|
return (
|
||||||
<Site>
|
<Site>
|
||||||
<Component {...pageProps} key={router.asPath} />
|
<Component {...pageProps} />
|
||||||
</Site>
|
</Site>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
// export function reportWebVitals(metric: NextWebVitalsMetric) {
|
|
||||||
// console.info(metric)
|
|
||||||
// }
|
|
||||||
|
@ -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} />
|
(props, ref) => <svg ref={ref} {...props} />
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ import './__mocks__/matchMedia'
|
|||||||
jest.mock('next/router', () => ({
|
jest.mock('next/router', () => ({
|
||||||
useRouter: jest.fn().mockImplementation(() => ({
|
useRouter: jest.fn().mockImplementation(() => ({
|
||||||
route: '/',
|
route: '/',
|
||||||
asPath: '/'
|
pathname: '/'
|
||||||
}))
|
}))
|
||||||
}))
|
}))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user