Skip to content

Commit

Permalink
Fixed build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
antoninvf committed Feb 27, 2025
1 parent aa51040 commit 3a540c6
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 5 deletions.
7 changes: 7 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Dockerfile
.dockerignore
node_modules
npm-debug.log
README.md
.next
.git
17 changes: 17 additions & 0 deletions .eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { FlatCompat } from '@eslint/eslintrc';

const compat = new FlatCompat({
// import.meta.dirname is available after Node.js v20.11.0
baseDirectory: import.meta.dirname,
});

const eslintConfig = [
...compat.config({
extends: ['next/core-web-vitals'],
rules: {
'react/no-unescaped-entities': 'off',
},
}),
];

export default eslintConfig;
3 changes: 0 additions & 3 deletions .eslintrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion src/app/about/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
import { Flex, Text, Title } from '@mantine/core';
import { Module } from '~home';
import { Logo } from '~home/components/Logo';
import { NavModule } from '~home/components/NavModule';
import classes from '~/styles/Content.module.scss';
import Link from 'next/link';
import { NavModule } from '../../modules/home/components/NavModule/NavModule';

export default function About() {
return (
Expand Down
3 changes: 2 additions & 1 deletion src/modules/home/components/NavModule/NavModule.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@ const Links = [
];

export const NavModule = () => {
const pathname = usePathname();
return (
<Module title={'STUFF'}>
<Flex direction={'column'}>
{Links.map((link) => (
<Link
className={
usePathname() === link.href ? classes.activelink : classes.link
pathname === link.href ? classes.activelink : classes.link
}
key={link.href}
href={link.href}
Expand Down

0 comments on commit 3a540c6

Please sign in to comment.