Skip to content

Commit

Permalink
chore(deps): bump next from 14.0.4 to 14.1.1 (#2512)
Browse files Browse the repository at this point in the history
* chore(deps): bump next from 14.0.4 to 14.1.1

Bumps [next](https://github.com/vercel/next.js) from 14.0.4 to 14.1.1.
- [Release notes](https://github.com/vercel/next.js/releases)
- [Changelog](https://github.com/vercel/next.js/blob/canary/release.js)
- [Commits](vercel/next.js@v14.0.4...v14.1.1)

---
updated-dependencies:
- dependency-name: next
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* fix: pre-render of generateStaticParams

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: GloireMutaliko21 <[email protected]>
  • Loading branch information
dependabot[bot] and GloireMutaliko21 authored May 13, 2024
1 parent 7d8958c commit 2f7cd34
Show file tree
Hide file tree
Showing 11 changed files with 134 additions and 171 deletions.
37 changes: 18 additions & 19 deletions apps/web/app/[locale]/auth/passcode/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,23 +139,23 @@ function PasscodeScreen({ form, className }: { form: TAuthenticationPasscode } &
const [disabled, setDisabled] = useState(true);

useEffect(() => {
let interval: NodeJS.Timeout | undefined = undefined;
if (timer > 0) {
interval = setInterval(() => {
setTimer((prevTimer) => prevTimer - 1);
}, 1000);
} else {
setDisabled(false);
clearInterval(interval);
}
let interval: NodeJS.Timeout | undefined = undefined;
if (timer > 0) {
interval = setInterval(() => {
setTimer((prevTimer) => prevTimer - 1);
}, 1000);
} else {
setDisabled(false);
clearInterval(interval);
}

return () => clearInterval(interval);
}, [timer]);
return () => clearInterval(interval);
}, [timer]);

const handleResendClick = () => {
setDisabled(true);
setTimer(60);
};
const handleResendClick = () => {
setDisabled(true);
setTimer(60);
};

const resetForm = () => {
if (inputsRef.current) {
Expand Down Expand Up @@ -239,8 +239,7 @@ function PasscodeScreen({ form, className }: { form: TAuthenticationPasscode } &
</span>
) : (
<span className=" dark:text-primary-light">
{t('pages.auth.RESEND_CODE_IN')} {' '}
{formatTime(timer)}
{t('pages.auth.RESEND_CODE_IN')} {formatTime(timer)}
</span>
)}
</button>
Expand Down Expand Up @@ -358,7 +357,7 @@ export function WorkSpaceComponent(props: IWorkSpace) {
<Text.Heading as="h3" className="text-center">
{t('pages.auth.SELECT_WORKSPACE')}
</Text.Heading>
<ScrollArea className='h-64 relative w-full pr-2 '>
<ScrollArea className="h-64 relative w-full pr-2 ">
<div className="flex flex-col gap-y-4 ">
{props.workspaces?.map((worksace, index) => (
<div
Expand Down Expand Up @@ -434,7 +433,7 @@ export function WorkSpaceComponent(props: IWorkSpace) {
</div>
))}
</div>
<ScrollBar className='-pr-20'/>
<ScrollBar className="-pr-20" />
</ScrollArea>
<div className="flex items-center justify-between w-full">
<div className="flex flex-col space-y-2">
Expand Down
8 changes: 4 additions & 4 deletions apps/web/app/[locale]/auth/passcode/page.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { APPLICATION_DEFAULT_LANGUAGE } from '@app/constants';
// import { APPLICATION_DEFAULT_LANGUAGE } from '@app/constants';
import AuthPasscode from './component';

export async function generateStaticParams() {
return [{ locale: APPLICATION_DEFAULT_LANGUAGE }];
}
// export function generateStaticParams() {
// return [{ locale: APPLICATION_DEFAULT_LANGUAGE }];
// }

export default function Page() {
return <AuthPasscode />;
Expand Down
8 changes: 4 additions & 4 deletions apps/web/app/[locale]/auth/password/page.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { APPLICATION_DEFAULT_LANGUAGE } from '@app/constants';
// import { APPLICATION_DEFAULT_LANGUAGE } from '@app/constants';
import AuthPassword from './component';

export async function generateStaticParams() {
return [{ locale: APPLICATION_DEFAULT_LANGUAGE }];
}
// export async function generateStaticParams() {
// return [{ locale: APPLICATION_DEFAULT_LANGUAGE }];
// }

export default function Page() {
return <AuthPassword />;
Expand Down
8 changes: 4 additions & 4 deletions apps/web/app/[locale]/auth/team/page.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { APPLICATION_DEFAULT_LANGUAGE } from '@app/constants';
// import { APPLICATION_DEFAULT_LANGUAGE } from '@app/constants';
import AuthTeam from './component';

export async function generateStaticParams() {
return [{ locale: APPLICATION_DEFAULT_LANGUAGE }];
}
// export async function generateStaticParams() {
// return [{ locale: APPLICATION_DEFAULT_LANGUAGE }];
// }

export default function Page() {
return <AuthTeam />;
Expand Down
8 changes: 4 additions & 4 deletions apps/web/app/[locale]/board/page.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { APPLICATION_DEFAULT_LANGUAGE } from '@app/constants';
// import { APPLICATION_DEFAULT_LANGUAGE } from '@app/constants';
import BoardPage from './component';

export async function generateStaticParams() {
return [{ locale: APPLICATION_DEFAULT_LANGUAGE }];
}
// export async function generateStaticParams() {
// return [{ locale: APPLICATION_DEFAULT_LANGUAGE }];
// }

export default function Page() {
return <BoardPage />;
Expand Down
8 changes: 4 additions & 4 deletions apps/web/app/[locale]/integration/github/page.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { APPLICATION_DEFAULT_LANGUAGE } from '@app/constants';
// import { APPLICATION_DEFAULT_LANGUAGE } from '@app/constants';
import GitHubPage from './component';

export async function generateStaticParams() {
return [{ locale: APPLICATION_DEFAULT_LANGUAGE }];
}
// export async function generateStaticParams() {
// return [{ locale: APPLICATION_DEFAULT_LANGUAGE }];
// }

export default function Page() {
return <GitHubPage />;
Expand Down
8 changes: 4 additions & 4 deletions apps/web/app/[locale]/meet/page.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { APPLICATION_DEFAULT_LANGUAGE } from '@app/constants';
// import { APPLICATION_DEFAULT_LANGUAGE } from '@app/constants';
import MeetPage from './component';

export default function Page() {
return <MeetPage />;
}

export async function generateStaticParams() {
return [{ locale: APPLICATION_DEFAULT_LANGUAGE }];
}
// export async function generateStaticParams() {
// return [{ locale: APPLICATION_DEFAULT_LANGUAGE }];
// }
7 changes: 3 additions & 4 deletions apps/web/app/[locale]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { APPLICATION_DEFAULT_LANGUAGE } from '@app/constants';
import MainPage from './page-component';

export async function generateStaticParams() {
return [{ locale: APPLICATION_DEFAULT_LANGUAGE }];
}
// export async function generateStaticParams() {
// return [{ locale: APPLICATION_DEFAULT_LANGUAGE }];
// }

export default function Page() {
return <MainPage />;
Expand Down
8 changes: 4 additions & 4 deletions apps/web/app/[locale]/permissions/page.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { APPLICATION_DEFAULT_LANGUAGE } from '@app/constants';
// import { APPLICATION_DEFAULT_LANGUAGE } from '@app/constants';
import PermissionPage from './component';

export default function Page() {
return <PermissionPage />;
}

export async function generateStaticParams() {
return [{ locale: APPLICATION_DEFAULT_LANGUAGE }];
}
// export async function generateStaticParams() {
// return [{ locale: APPLICATION_DEFAULT_LANGUAGE }];
// }
2 changes: 1 addition & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"moment": "^2.29.4",
"moment-timezone": "^0.5.42",
"nanoid": "5.0.1",
"next": "^14.0.4",
"next": "^14.2.3",
"next-intl": "^3.3.2",
"next-themes": "^0.2.1",
"ni18n": "^1.1.0",
Expand Down
Loading

0 comments on commit 2f7cd34

Please sign in to comment.