Skip to content
Merged

fixes #1360

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
2 changes: 1 addition & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ let nextConfig = {
headers: [
{
key: 'Permissions-Policy',
value: 'clipboard-read=(self), clipboard-write=(self)',
value: 'camera=(self), clipboard-read=(self), clipboard-write=(self)',
},
],
},
Expand Down
4 changes: 2 additions & 2 deletions src/app/(mobile-ui)/history/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,15 +161,15 @@ const HistoryPage = () => {
if (user.user?.bridgeKycStatus && user.user.bridgeKycStatus !== 'not_started') {
entries.push({
isKyc: true,
timestamp: user.user.bridgeKycStartedAt ?? new Date(0).toISOString(),
timestamp: user.user.bridgeKycStartedAt ?? user.user.createdAt ?? new Date().toISOString(),
uuid: 'bridge-kyc-status-item',
bridgeKycStatus: user.user.bridgeKycStatus,
})
}
user.user.kycVerifications?.forEach((verification) => {
entries.push({
isKyc: true,
timestamp: verification.approvedAt ?? new Date(0).toISOString(),
timestamp: verification.approvedAt ?? verification.updatedAt ?? verification.createdAt,
uuid: verification.providerUserId ?? `${verification.provider}-${verification.mantecaGeo}`,
verification,
})
Expand Down
4 changes: 3 additions & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,14 @@ export const viewport: Viewport = {
initialScale: 1,
maximumScale: 1,
userScalable: false,
colorScheme: 'light',
}

export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<html lang="en">
<html lang="en" style={{ colorScheme: 'light' }}>
<head>
<meta name="color-scheme" content="light" />
{process.env.NODE_ENV !== 'development' && process.env.NEXT_PUBLIC_GA_KEY && (
<>
<Script
Expand Down
4 changes: 2 additions & 2 deletions src/components/Global/IframeWrapper/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,10 @@ const IframeWrapper = ({ src, visible, onClose, closeConfirmMessage }: IFrameWra
<iframe
key={src}
src={src}
allow="camera;"
allow="camera *; fullscreen *"
style={{ width: '100%', height: '85%', border: 'none' }}
className="rounded-md"
sandbox="allow-same-origin allow-scripts allow-forms allow-popups allow-modals allow-top-navigation-by-user-activation"
sandbox="allow-same-origin allow-scripts allow-forms allow-popups allow-modals allow-top-navigation-by-user-activation allow-media-devices"
/>
<div className="flex h-[15%] w-full flex-col items-center justify-center gap-2 px-5">
<Button
Expand Down
2 changes: 1 addition & 1 deletion src/components/Global/WalletNavigation/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const desktopPaths: NavPathProps[] = [
{ name: 'Add', href: '/add-money', icon: 'arrow-down', size: 14 },
{ name: 'Withdraw', href: '/withdraw', icon: 'arrow-up', size: 14 },
{ name: 'History', href: '/history', icon: 'history', size: 16 },
{ name: 'Docs', href: 'https://docs.peanut.to/', icon: 'docs', size: 16 },
{ name: 'Docs', href: 'https://docs.peanut.me/', icon: 'docs', size: 16 },
{ name: 'Support', href: '/support', icon: 'peanut-support', size: 16 },
]

Expand Down
4 changes: 2 additions & 2 deletions src/components/Home/HomeHistory.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,15 +151,15 @@ const HomeHistory = ({ isPublic = false, username }: { isPublic?: boolean; usern
if (user?.user?.bridgeKycStatus && user.user.bridgeKycStatus !== 'not_started') {
entries.push({
isKyc: true,
timestamp: user.user.bridgeKycStartedAt ?? new Date(0).toISOString(),
timestamp: user.user.bridgeKycStartedAt ?? user.user.createdAt ?? new Date().toISOString(),
uuid: 'bridge-kyc-status-item',
bridgeKycStatus: user.user.bridgeKycStatus,
})
}
user?.user.kycVerifications?.forEach((verification) => {
entries.push({
isKyc: true,
timestamp: verification.approvedAt ?? new Date(0).toISOString(),
timestamp: verification.approvedAt ?? verification.updatedAt ?? verification.createdAt,
uuid: verification.providerUserId ?? `${verification.provider}-${verification.mantecaGeo}`,
verification,
})
Expand Down
5 changes: 5 additions & 0 deletions src/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
@tailwind utilities;

@layer base {
/* Force light mode - prevent browser dark mode */
:root {
color-scheme: light only;
}

body {
/* disable text selection */
@apply select-none;
Expand Down
Loading