Skip to content

Commit 9deda40

Browse files
author
Rajat
committed
Fixed: settings crash
1 parent bda88c7 commit 9deda40

File tree

2 files changed

+4
-7
lines changed
  • apps/web
    • app/(with-contexts)/dashboard/(sidebar)/settings
    • components/admin/settings

2 files changed

+4
-7
lines changed

apps/web/app/(with-contexts)/dashboard/(sidebar)/settings/page.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ export default function Page() {
3434
siteinfo={siteinfo}
3535
profile={profile as Profile}
3636
selectedTab={tab as any}
37-
loading={false}
3837
/>
3938
</DashboardContent>
4039
);

apps/web/components/admin/settings/index.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ const {
9999
interface SettingsProps {
100100
siteinfo: SiteInfo;
101101
profile: Profile;
102-
loading: boolean;
103102
selectedTab:
104103
| typeof SITE_SETTINGS_SECTION_GENERAL
105104
| typeof SITE_SETTINGS_SECTION_PAYMENT
@@ -1073,14 +1072,14 @@ const Settings = (props: SettingsProps) => {
10731072
<div className="flex gap-2">
10741073
<Input
10751074
readOnly
1076-
value={`${props.address.backend}/api/payment/webhook`}
1075+
value={`${address.backend}/api/payment/webhook`}
10771076
/>
10781077
<Button
10791078
variant="outline"
10801079
size="icon"
10811080
onClick={() =>
10821081
copyToClipboard(
1083-
`${props.address.backend}/api/payment/webhook`,
1082+
`${address.backend}/api/payment/webhook`,
10841083
)
10851084
}
10861085
>
@@ -1096,14 +1095,14 @@ const Settings = (props: SettingsProps) => {
10961095
<div className="flex gap-2">
10971096
<Input
10981097
readOnly
1099-
value={`${props.address.backend}/api/payment/webhook-old`}
1098+
value={`${address.backend}/api/payment/webhook-old`}
11001099
/>
11011100
<Button
11021101
variant="outline"
11031102
size="icon"
11041103
onClick={() =>
11051104
copyToClipboard(
1106-
`${props.address.backend}/api/payment/webhook-old`,
1105+
`${address.backend}/api/payment/webhook-old`,
11071106
)
11081107
}
11091108
>
@@ -1206,7 +1205,6 @@ const Settings = (props: SettingsProps) => {
12061205
<td align="right"> </td>
12071206
</TableHead>
12081207
<TableBody
1209-
loading={props.loading}
12101208
endReached={true}
12111209
page={apikeyPage}
12121210
onPageChange={(value: number) => {

0 commit comments

Comments
 (0)