diff --git a/src/renderer/src/modules/settings/tabs/invitations.tsx b/src/renderer/src/modules/settings/tabs/invitations.tsx
index de4445f0d..559cafd55 100644
--- a/src/renderer/src/modules/settings/tabs/invitations.tsx
+++ b/src/renderer/src/modules/settings/tabs/invitations.tsx
@@ -3,9 +3,11 @@ import {
AvatarFallback,
AvatarImage,
} from "@renderer/components/ui/avatar"
-import { Button, MotionButtonBase } from "@renderer/components/ui/button"
+import { Button } from "@renderer/components/ui/button"
import { CopyButton } from "@renderer/components/ui/code-highlighter"
+import { Divider } from "@renderer/components/ui/divider"
import { LoadingCircle } from "@renderer/components/ui/loading"
+import { useModalStack } from "@renderer/components/ui/modal"
import { ScrollArea } from "@renderer/components/ui/scroll-area"
import {
Table,
@@ -46,121 +48,146 @@ export const SettingInvitations = () => {
},
})
const presentUserProfile = usePresentUserProfileModal("drawer")
+ const { present } = useModalStack()
return (
<>
-
-
-
- {
- newInvitation.mutate()
- }}
- className="center absolute bottom-0 right-2 z-10 size-10 rounded-full bg-accent text-white drop-shadow"
- >
-
-
-
-
- New invitation
-
-
- {invitations.data?.length ? (
-
-
-
-
- Code
-
-
- Creation Time
-
-
- Used by
-
-
-
-
- {invitations.data?.map((row) => (
-
-
-
- {row.code}
-
-
-
-
- {row.createdAt &&
- new Date(row.createdAt).toLocaleString()}
-
-
- {row.users ? (
-
-
-
-
- {row.users?.name && (
-
- {row.users?.name}
-
- )}
-
- ) : (
- "Not used"
- )}
-
-
- ))}
-
-
- ) : invitations.isLoading ?
- (
-
- ) :
- (
-
-
No invitations
-
-
+
+
+
+ Follow is currently in
+ {" "}
+ early access
+ {" "}
+ and
+ requires an invitation code to use.
+
+
You can spend 10 Power to generate an invitation code for your friends.
+
+
- )}
-
-
+ >
+ ),
+ })
+ }}
+ >
+
+ Generate new code
+
+
+
+
+ {invitations.data?.length ? (
+
+
+
+
+ Code
+
+
+ Creation Time
+
+
+ Used by
+
+
+
+
+ {invitations.data?.map((row) => (
+
+
+
+ {row.code}
+
+
+
+
+ {row.createdAt &&
+ new Date(row.createdAt).toLocaleString()}
+
+
+ {row.users ? (
+
+
+ {
+ presentUserProfile(row.users?.id)
+ }}
+ >
+
+
+
+ {row.users?.name?.slice(0, 2)}
+
+
+
+
+ {row.users?.name && (
+
+ {row.users?.name}
+
+ )}
+
+ ) : (
+ "Not used"
+ )}
+
+
+ ))}
+
+
+ ) : invitations.isLoading ?
+ (
+
+ ) :
+ (
+
+
No invitations
+
+
+ {
+ newInvitation.mutate()
+ }}
+ >
+ Create Invitation
+
+
+
+ )}
+
+
+
>
)
}
diff --git a/src/renderer/src/modules/settings/tabs/wallet/index.tsx b/src/renderer/src/modules/settings/tabs/wallet/index.tsx
index 8c79b9225..6f31f62be 100644
--- a/src/renderer/src/modules/settings/tabs/wallet/index.tsx
+++ b/src/renderer/src/modules/settings/tabs/wallet/index.tsx
@@ -1,3 +1,5 @@
+import { Divider } from "@renderer/components/ui/divider"
+
import { SettingsTitle } from "../../title"
import { MyWalletSection } from "./my-wallet-section"
import { TransactionsSection } from "./transaction-section"
@@ -8,6 +10,8 @@ export const SettingWallet = () => (
+
+
)
diff --git a/src/renderer/src/modules/settings/tabs/wallet/transaction-section/index.tsx b/src/renderer/src/modules/settings/tabs/wallet/transaction-section/index.tsx
index 7a0e69812..8ddefdd75 100644
--- a/src/renderer/src/modules/settings/tabs/wallet/transaction-section/index.tsx
+++ b/src/renderer/src/modules/settings/tabs/wallet/transaction-section/index.tsx
@@ -8,6 +8,7 @@ import {
import { MotionButtonBase } from "@renderer/components/ui/button"
import { RelativeTime } from "@renderer/components/ui/datetime"
import { LoadingCircle } from "@renderer/components/ui/loading"
+import { ScrollArea } from "@renderer/components/ui/scroll-area"
import {
Table,
TableBody,
@@ -45,7 +46,7 @@ export const TransactionsSection = () => {
-
+
@@ -97,7 +98,7 @@ export const TransactionsSection = () => {
No transactions
)}
-
+
)
}