-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
261 additions
and
237 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: Lint and Typecheck | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
linting-and-typechecking: | ||
runs-on: ubuntu-latest | ||
name: Linting and Typechecking | ||
|
||
# Considerar Mover clone/setup/caches a un composite action 🙏 | ||
steps: | ||
- name: ⏳ Cloning repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: ⬢ Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
|
||
- name: 📦 Download Cached Package Dependencies | ||
uses: actions/cache@v3 | ||
env: | ||
cache-name: NPM | ||
with: | ||
path: ~/.npm | ||
key: CACHE-${{ env.cache-name }}-${{ hashFiles('package-lock.json') }} | ||
|
||
- name: 📦 Download Cached Eslint output | ||
uses: actions/cache@v3 | ||
env: | ||
cache-name: ESLINT | ||
with: | ||
path: .eslintcache | ||
key: CACHE-${{ env.cache-name }}-${{ hashFiles('.eslintcache') }} | ||
|
||
- name: 📦 Download Cached Typescript output | ||
uses: actions/cache@v3 | ||
env: | ||
cache-name: TYPESCRIPT | ||
with: | ||
path: tsconfig.tsbuildinfo | ||
key: CACHE-${{ env.cache-name }}-${{ hashFiles('tsconfig.tsbuildinfo') }} | ||
|
||
- name: 📥 Install dependencies | ||
run: npm ci --prefer-offline --no-audit --legacy-peer-deps --cache ~/.npm | ||
|
||
- name: Run Linter | ||
run: npm run lint | ||
|
||
- name: Run Typecheck | ||
run: npm run typecheck | ||
|
||
- name: Run Prettier | ||
run: npm run prettier:ci |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
|
||
export type NavbarMenuItem = { | ||
content: string; | ||
link?: string; | ||
icon?: React.ReactNode; | ||
onClick?: (e: React.MouseEvent<HTMLElement>) => void; | ||
children?: Array<NavbarMenuItem | DropdownMenuSeparator>; | ||
} | ||
content: string; | ||
link?: string; | ||
icon?: React.ReactNode; | ||
onClick?: (e: React.MouseEvent<HTMLElement>) => void; | ||
children?: Array<NavbarMenuItem | DropdownMenuSeparator>; | ||
}; | ||
|
||
export type NavBarProps = { | ||
items: Array<NavbarMenuItem>; | ||
} | ||
|
||
items: Array<NavbarMenuItem>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
"use client" | ||
"use client"; | ||
|
||
import * as React from "react" | ||
import { ThemeProvider as NextThemesProvider } from "next-themes" | ||
import { ThemeProviderProps } from "next-themes/dist/types" | ||
import * as React from "react"; | ||
import { ThemeProvider as NextThemesProvider } from "next-themes"; | ||
import { ThemeProviderProps } from "next-themes/dist/types"; | ||
|
||
export function ThemeProvider({ children, ...props }: ThemeProviderProps) { | ||
return ( | ||
<NextThemesProvider {...props}> | ||
{children} | ||
</NextThemesProvider> | ||
) | ||
} | ||
return <NextThemesProvider {...props}>{children}</NextThemesProvider>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.