diff --git a/infra/rooch-portal/.env.production b/infra/rooch-portal/.env.production new file mode 100644 index 0000000000..a72448bc15 --- /dev/null +++ b/infra/rooch-portal/.env.production @@ -0,0 +1 @@ +VITE_ROOCH_OPERATING_ADDRESS=0xb7ac336861ff431cf867400a1eaa9708b5666954b5268486e6bd2e948aab1a42 diff --git a/infra/rooch-portal/src/pages/settings/components/manage-sessions.tsx b/infra/rooch-portal/src/pages/settings/components/manage-sessions.tsx index 384aa3fb56..e1fb863013 100644 --- a/infra/rooch-portal/src/pages/settings/components/manage-sessions.tsx +++ b/infra/rooch-portal/src/pages/settings/components/manage-sessions.tsx @@ -18,6 +18,8 @@ import { } from '@roochnetwork/rooch-sdk-kit' import { Copy, ChevronDown, ChevronUp, Check, AlertCircle } from 'lucide-react' +import {formatTimestamp} from '@/utils/format.ts' + interface Session { authenticationKey: string appName: string @@ -41,11 +43,6 @@ interface ExpandableRowProps { remove: (authKey: string) => void } -const formatTimestamp = (timestamp: number): string => { - const date = new Date(timestamp) - return date.toLocaleString() -} - const copyToClipboard = async (text: string, setCopied: (value: boolean) => void) => { try { await navigator.clipboard.writeText(text) @@ -116,6 +113,8 @@ export const ManageSessions: React.FC = () => { ) } + console.log(sessionKeys) + return (