Skip to content

Commit d2fdffb

Browse files
committed
portal: update deps
1 parent 167bd5e commit d2fdffb

File tree

7 files changed

+200
-17
lines changed

7 files changed

+200
-17
lines changed

apps/portal/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
},
1818
"dependencies": {
1919
"@headlessui/react": "^1.7.3",
20-
"@heroicons/react": "^2.0.11",
20+
"@heroicons/react": "2.0.11",
2121
"@next-auth/prisma-adapter": "^1.0.4",
2222
"@popperjs/core": "^2.11.6",
2323
"@prisma/client": "^4.4.0",
@@ -32,7 +32,7 @@
3232
"cross-fetch": "^3.1.5",
3333
"date-fns": "^2.29.3",
3434
"formidable": "^2.0.1",
35-
"next": "12.3.1",
35+
"next": "13.4.1",
3636
"next-auth": "~4.10.3",
3737
"node-fetch": "^3.2.10",
3838
"react": "18.2.0",

apps/portal/src/components/global/AppShell.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function ProfileJewel() {
6868
{
6969
href: '/api/auth/signout',
7070
name: 'Sign Out',
71-
onClick: (event: MouseEvent) => {
71+
onClick: (event: React.MouseEvent<HTMLAnchorElement>) => {
7272
event.preventDefault();
7373
signOut();
7474
},

apps/portal/src/components/resumes/ResumePdf.tsx

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import clsx from 'clsx';
22
import { useEffect, useState } from 'react';
33
import { Document, Page, pdfjs } from 'react-pdf';
4-
import type { PDFDocumentProxy } from 'react-pdf/node_modules/pdfjs-dist';
54
import {
65
MagnifyingGlassMinusIcon,
76
MagnifyingGlassPlusIcon,
@@ -20,10 +19,6 @@ export default function ResumePdf({ url }: Props) {
2019
const [pageWidth, setPageWidth] = useState(750);
2120
const [componentWidth, setComponentWidth] = useState(780);
2221

23-
const onPdfLoadSuccess = (pdf: PDFDocumentProxy) => {
24-
setNumPages(pdf.numPages);
25-
};
26-
2722
const onPageResize = () => {
2823
setComponentWidth(
2924
document.querySelector('#pdfView')?.getBoundingClientRect().width ?? 780,
@@ -44,7 +39,9 @@ export default function ResumePdf({ url }: Props) {
4439
file={url}
4540
loading={<Spinner display="block" size="lg" />}
4641
noData=""
47-
onLoadSuccess={onPdfLoadSuccess}>
42+
onLoadSuccess={(pdf) => {
43+
setNumPages(pdf.numPages);
44+
}}>
4845
<div
4946
style={{
5047
paddingLeft: clsx(

apps/portal/src/components/resumes/landing/PrimaryFeatures.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import clsx from 'clsx';
2-
import Image from 'next/future/image';
2+
import Image from 'next/image';
33
import { useEffect, useState } from 'react';
44
import { Tab } from '@headlessui/react';
55

apps/portal/src/server/router/context.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export const createRouter = () => trpc.router<Context>();
4747
**/
4848
export function createProtectedRouter() {
4949
return createRouter().middleware(({ ctx, next }) => {
50-
if (!ctx.session || !ctx.session.user) {
50+
if (!ctx.session?.user) {
5151
throw new trpc.TRPCError({ code: 'UNAUTHORIZED' });
5252
}
5353
return next({

packages/ui/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
},
2424
"dependencies": {
2525
"@headlessui/react": "^1.7.3",
26-
"@heroicons/react": "^2.0.11",
26+
"@heroicons/react": "2.0.11",
2727
"clsx": "^1.2.1",
2828
"next": "^12.3.1",
2929
"tailwindcss": "^3.1.8"

0 commit comments

Comments
 (0)