Skip to content

Commit 2cba87c

Browse files
authored
Chore/fix builds (#362)
* chore: fix builds * chore: api builds
1 parent baf2d80 commit 2cba87c

File tree

17 files changed

+80
-69
lines changed

17 files changed

+80
-69
lines changed

platforms/blabsy-w3ds-auth-api/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
"typeorm": "^0.3.20",
2727
"uuid": "^9.0.1",
2828
"graphql": "^16.8.1",
29-
"graphql-request": "^6.1.0"
29+
"graphql-request": "^6.1.0",
30+
"web3-adapter": "workspace:*"
3031
},
3132
"devDependencies": {
3233
"@types/cors": "^2.8.17",

platforms/blabsy-w3ds-auth-api/src/controllers/WebhookController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Request, Response } from "express";
2-
import { Web3Adapter } from "../../../../infrastructure/web3-adapter/src/index";
2+
import { Web3Adapter } from "web3-adapter";
33
import path from "path";
44
import dotenv from "dotenv";
55
import { getFirestore } from "firebase-admin/firestore";

platforms/eVoting/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@
4646
"lucide-react": "^0.453.0",
4747
"next": "15.4.2",
4848
"next-qrcode": "^2.5.1",
49-
"qrcode.react": "^3.1.0",
49+
"qrcode.react": "^4.2.0",
5050
"react": "19.1.0",
51-
"react-day-picker": "^8.10.1",
51+
"react-day-picker": "^9.11.1",
5252
"react-dom": "19.1.0",
5353
"react-hook-form": "^7.55.0",
5454
"react-resizable-panels": "^2.1.9",

platforms/eVoting/src/app/(auth)/login/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"use client";
22
import { useState, useEffect } from "react";
33
import { Card, CardHeader } from "@/components/ui/card";
4-
import QRCode from "qrcode.react";
4+
import { QRCodeSVG } from "qrcode.react";
55
import { useAuth } from "@/lib/auth-context";
66
import { setAuthToken, setAuthId } from "@/lib/authUtils";
77
import { isMobileDevice, getDeepLinkUrl } from "@/lib/utils/mobile-detection";
@@ -135,7 +135,7 @@ export default function LoginPage() {
135135
</div>
136136
) : (
137137
<div className="p-4 bg-white rounded-lg">
138-
<QRCode
138+
<QRCodeSVG
139139
value={qrData}
140140
size={200}
141141
level="M"

platforms/eVoting/src/components/auth/login-screen.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"use client";
22

33
import React, { useEffect, useState } from "react";
4-
import QRCode from "qrcode.react";
4+
import { QRCodeSVG } from "qrcode.react";
55
import { useAuth } from "@/lib/auth-context";
66
import { apiClient } from "@/lib/apiClient";
77

@@ -73,7 +73,7 @@ export function LoginScreen() {
7373
<div className="flex flex-col items-center space-y-6">
7474
{qrCode ? (
7575
<div className="p-4 bg-white border-2 border-gray-200 rounded-lg">
76-
<QRCode
76+
<QRCodeSVG
7777
value={qrCode}
7878
size={200}
7979
level="M"

platforms/eVoting/src/components/ui/calendar.tsx

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import * as React from "react"
22
import { ChevronLeft, ChevronRight } from "lucide-react"
3-
import { DayPicker } from "react-day-picker"
3+
import { DayPicker, Chevron } from "react-day-picker"
44

55
import { cn } from "@/lib/utils"
66
import { buttonVariants } from "@/components/ui/button"
77

8-
export type CalendarProps = React.ComponentProps<typeof DayPicker>
8+
export type CalendarProps = React.ComponentPropsWithoutRef<typeof DayPicker>
99

1010
function Calendar({
1111
className,
@@ -52,12 +52,10 @@ function Calendar({
5252
...classNames,
5353
}}
5454
components={{
55-
IconLeft: ({ className, ...props }) => (
56-
<ChevronLeft className={cn("h-4 w-4", className)} {...props} />
57-
),
58-
IconRight: ({ className, ...props }) => (
59-
<ChevronRight className={cn("h-4 w-4", className)} {...props} />
60-
),
55+
Chevron: ({ orientation, ...props }) => {
56+
const Icon = orientation === "left" ? ChevronLeft : ChevronRight
57+
return <Icon className="h-4 w-4" {...props} />
58+
},
6159
}}
6260
{...props}
6361
/>

platforms/evoting-api/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
"pg": "^8.11.3",
2626
"reflect-metadata": "^0.2.1",
2727
"typeorm": "^0.3.24",
28-
"uuid": "^9.0.1"
28+
"uuid": "^9.0.1",
29+
"web3-adapter": "workspace:*"
2930
},
3031
"devDependencies": {
3132
"@types/cors": "^2.8.17",

platforms/evoting-api/src/web3adapter/watchers/subscriber.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
RemoveEvent,
77
ObjectLiteral,
88
} from "typeorm";
9-
import { Web3Adapter } from "../../../../../infrastructure/web3-adapter/src/index";
9+
import { Web3Adapter } from "web3-adapter";
1010
import path from "path";
1111
import dotenv from "dotenv";
1212
import { AppDataSource } from "../../database/data-source";

platforms/group-charter-manager-api/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
"pg": "^8.11.3",
2424
"reflect-metadata": "^0.2.1",
2525
"typeorm": "^0.3.24",
26-
"uuid": "^9.0.1"
26+
"uuid": "^9.0.1",
27+
"web3-adapter": "workspace:*"
2728
},
2829
"devDependencies": {
2930
"@types/cors": "^2.8.17",

platforms/group-charter-manager-api/src/controllers/WebhookController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Request, Response } from "express";
22
import { UserService } from "../services/UserService";
33
import { GroupService } from "../services/GroupService";
4-
import { Web3Adapter } from "../../../../infrastructure/web3-adapter/src";
4+
import { Web3Adapter } from "web3-adapter";
55
import { User } from "../database/entities/User";
66
import { Group } from "../database/entities/Group";
77
import axios from "axios";

0 commit comments

Comments
 (0)