mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-09-10 18:26:15 +02:00
chore: formatted, prettified, legacy deps
This commit is contained in:
@@ -25,7 +25,7 @@ const Contacts: React.FC<Props> = ({ contacts }: Props) => (
|
||||
<Icon name={name} icon={getIcon(name)} />
|
||||
</a>
|
||||
</li>
|
||||
) : null
|
||||
) : null,
|
||||
)}
|
||||
<li className={styles.item} key="keys">
|
||||
<a className={styles.link} href="/keys.json" rel="noopener noreferrer" target="_blank">
|
||||
|
@@ -6,8 +6,6 @@ type Props = {
|
||||
copyright: string;
|
||||
};
|
||||
|
||||
const Copyright = ({ copyright }: Props) => (
|
||||
<div className={styles.copyright}>{copyright}</div>
|
||||
);
|
||||
const Copyright = ({ copyright }: Props) => <div className={styles.copyright}>{copyright}</div>;
|
||||
|
||||
export default Copyright;
|
||||
|
@@ -11,9 +11,7 @@ const mockedUseStaticQuery = useStaticQuery as jest.Mock;
|
||||
|
||||
describe("Sidebar", () => {
|
||||
beforeEach(() => {
|
||||
mockedStaticQuery.mockImplementationOnce(({ render }) =>
|
||||
render(mocks.siteMetadata),
|
||||
);
|
||||
mockedStaticQuery.mockImplementationOnce(({ render }) => render(mocks.siteMetadata));
|
||||
mockedUseStaticQuery.mockReturnValue(mocks.siteMetadata);
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user