Fixed href's to go to the right place (#7377)

pull/7389/head
Alex van Andel 2023-02-24 18:39:09 +00:00 committed by GitHub
parent abce20824f
commit 5f7d904349
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -10,7 +10,7 @@ import NavTabs from "./NavTabs";
const tabs = [
{
name: "profile",
href: "/settings/profile",
href: "/settings/my-account/profile",
icon: FiUser,
},
{

View File

@ -10,7 +10,7 @@ test("Can delete user account", async ({ page, users }) => {
await page.waitForSelector("[data-testid=dashboard-shell]");
await page.goto(`/settings/profile`);
await page.goto(`/settings/my-account/profile`);
await page.click("[data-testid=delete-account]");
if (!user.username) throw Error(`Test user doesn't have a username`);

View File

@ -38,7 +38,7 @@ export const purchaseTeamSubscription = async (input: { teamId: number; seats: n
mode: "subscription",
allow_promotion_codes: true,
success_url: `${WEBAPP_URL}/api/teams/${teamId}/upgrade?session_id={CHECKOUT_SESSION_ID}`,
cancel_url: `${WEBAPP_URL}/settings/profile`,
cancel_url: `${WEBAPP_URL}/settings/my-account/profile`,
line_items: [
{
/** We only need to set the base price and we can upsell it directly on Stripe's checkout */

View File

@ -882,7 +882,7 @@ function TopNav() {
</span>
<button className="rounded-full p-1 text-gray-400 hover:bg-gray-50 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-black focus:ring-offset-2">
<span className="sr-only">{t("settings")}</span>
<Link href="/settings/profile">
<Link href="/settings/my-account/profile">
<FiSettings className="h-4 w-4 text-gray-700" aria-hidden="true" />
</Link>
</button>