Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: build error #84

Merged
merged 2 commits into from
Mar 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/dry-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Dry build
on:
pull_request:

jobs:
DryBuild:
name: Dry build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v4
- run: yarn install --frozen-lockfile
- run: yarn build
3 changes: 2 additions & 1 deletion app/(dashboard)/components/side-bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ const sideBar:SideBarItem[] = [


export function SideBar(){
const pathName = usePathname();
const items = sideBar?.map((item, idx) => {
return (
<Link key={idx} href={item.href} className={`rounded-md ${usePathname() === item.href && 'bg-default-50'}`}>
<Link key={idx} href={item.href} className={`rounded-md ${pathName === item.href && 'bg-default-50'}`}>
<div className="flex gap-2 mx-auto w-fit py-2">
{item.icon({size:24, className: 'w-6 h-6 text-default-900 flex-shrink-0'})}
<span className="text-base">{item.label}</span>
Expand Down
2 changes: 1 addition & 1 deletion app/(root)/setting/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {Message} from "@/components/message";
import ShareTable from "@/components/share-table";
import IOC from "@/providers";
import Password from "@/components/password";
import {useSharedLinks} from "@/app/setting/hooks/use-shared-links";
import {useSharedLinks} from "./hooks/use-shared-links";

interface SettingItem {
label: string;
Expand Down
2 changes: 1 addition & 1 deletion components/share-table.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react";
import {Table, TableBody, TableCell, TableColumn, TableHeader, TableRow} from "@nextui-org/table";
import {Spinner} from "@nextui-org/react";
import {useSharedLinks} from "@/app/setting/hooks/use-shared-links";
import {useSharedLinks} from '../app/(root)/setting/hooks/use-shared-links';
import {Link} from "@nextui-org/link";
import {Button, ButtonGroup} from "@nextui-org/button";
import {FaLock, FaLockOpen} from "react-icons/fa6";
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@
"react-img-contrast": "^2.2.0",
"tailwind-variants": "^0.1.13",
"tailwindcss": "3.3.3",
"typescript": "5.0.4"
"typescript": "5.0.4",
"zod": "^3.22.4"
},
"devDependencies": {
"@types/react-cookies": "^0.1.3",
Expand Down
Loading