File tree 2 files changed +8
-24
lines changed
apps/next/components/user
2 files changed +8
-24
lines changed Original file line number Diff line number Diff line change 1
1
"use client"
2
2
3
3
import * as React from "react"
4
- import Link from "next/link"
5
4
import { zodResolver } from "@hookform/resolvers/zod"
6
5
import { CircleIcon , CrossCircledIcon } from "@radix-ui/react-icons"
7
6
import { useMutation } from "@tanstack/react-query"
@@ -154,17 +153,10 @@ const CredentialsFormComponent: React.FC<{
154
153
</ AlertDescription >
155
154
</ Alert >
156
155
) }
157
- < footer className = "flex flex-col gap-2 sm:flex-row" >
158
- < Button type = "submit" disabled = { isPending } >
159
- { isPending && (
160
- < CircleIcon className = "mr-2 size-4 animate-spin" />
161
- ) }
162
- Update Settings
163
- </ Button >
164
- < Button asChild variant = "link" >
165
- < Link href = "/settings/profile" > Profile Settings</ Link >
166
- </ Button >
167
- </ footer >
156
+ < Button type = "submit" disabled = { isPending } >
157
+ { isPending && < CircleIcon className = "mr-2 size-4 animate-spin" /> }
158
+ Update Settings
159
+ </ Button >
168
160
</ form >
169
161
</ Form >
170
162
</ CardContent >
Original file line number Diff line number Diff line change 1
1
"use client"
2
2
3
3
import * as React from "react"
4
- import Link from "next/link"
5
4
import { zodResolver } from "@hookform/resolvers/zod"
6
5
import {
7
6
CircleIcon ,
@@ -258,17 +257,10 @@ const ProfileFormComponent: React.FC<{
258
257
</ AlertDescription >
259
258
</ Alert >
260
259
) }
261
- < footer className = "flex flex-col gap-2 sm:flex-row" >
262
- < Button type = "submit" disabled = { isPending } >
263
- { isPending && (
264
- < CircleIcon className = "mr-2 size-4 animate-spin" />
265
- ) }
266
- Update Settings
267
- </ Button >
268
- < Button asChild variant = "link" >
269
- < Link href = "/settings/account" > Account Settings</ Link >
270
- </ Button >
271
- </ footer >
260
+ < Button type = "submit" disabled = { isPending } >
261
+ { isPending && < CircleIcon className = "mr-2 size-4 animate-spin" /> }
262
+ Update Settings
263
+ </ Button >
272
264
</ form >
273
265
</ Form >
274
266
</ CardContent >
You can’t perform that action at this time.
0 commit comments