Skip to content

Commit

Permalink
build fix_1
Browse files Browse the repository at this point in the history
  • Loading branch information
nicitaacom committed Jul 31, 2023
1 parent e36d1b9 commit ab73b25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
13 changes: 0 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,6 @@ jobs:
- name: Install dependencies
run: pnpm install

- name: Build cache
uses: actions/cache@v3
with:
# See here for caching with `yarn` https://github.com/actions/cache/blob/main/examples.md#node---yarn or you can leverage caching with actions/setup-node https://github.com/actions/setup-node
path: |
~/.npm
${{ github.workspace }}/.next/cache
# Generate a new cache whenever packages or source files change.
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/*.[jt]s', '**/*.[jt]sx') }}
# If source files changed but packages didn't, rebuild from a prior cache.
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
- name: Building
run: pnpm build
env:
Expand Down
4 changes: 2 additions & 2 deletions src/components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ export function Navbar() {
{navLinks.map(navLink => (
<li className="relative" key={navLink.href}>
<Button className="text-lg" variant='nav-link' active={`${router.pathname === navLink.href ? 'active' : 'inactive'}`}
onClick={async () => {
router.push(navLink.href), hideHamburgerMenu()
onClick={() => {
router.push(navLink.href), hideHamburgerMenu
}}>{navLink.label}</Button>
</li>
))}
Expand Down

0 comments on commit ab73b25

Please sign in to comment.