Login:Components:ChangeOwnerForm: add use client and change imports
This commit is contained in:
parent
8e7bbdc8ad
commit
e6741fcab9
@ -24,6 +24,8 @@
|
||||
// content are licensed under the terms of the Creative Commons Attribution-ShareAlike 4.0
|
||||
// International. See the License terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
|
||||
|
||||
"use client";
|
||||
|
||||
import styled from "styled-components";
|
||||
|
||||
export const ButtonsWrapper = styled.div`
|
||||
|
@ -26,18 +26,21 @@
|
||||
|
||||
"use client";
|
||||
|
||||
import { ConfirmRouteContext } from "@/app/(root)/confirm/confirmRoute";
|
||||
import withLoader from "@/app/(root)/confirm/withLoader";
|
||||
import { useContext, useState } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
|
||||
import { Button, ButtonSize } from "@docspace/shared/components/button";
|
||||
import { Text } from "@docspace/shared/components/text";
|
||||
import { toastr } from "@docspace/shared/components/toast";
|
||||
import { PRODUCT_NAME } from "@docspace/shared/constants";
|
||||
import { useContext, useEffect, useState } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { ButtonsWrapper } from "./ChangeOwner.styled";
|
||||
|
||||
import { ConfirmRouteContext } from "@/app/(root)/confirm/confirmRoute";
|
||||
import withLoader from "@/app/(root)/confirm/withLoader";
|
||||
import { TError, WithLoaderProps } from "@/types";
|
||||
import { ownerChange } from "@/utils/actions";
|
||||
|
||||
import { ButtonsWrapper } from "./ChangeOwner.styled";
|
||||
|
||||
type ChangeOwnerFormProps = {
|
||||
newOwner?: string;
|
||||
} & WithLoaderProps;
|
||||
|
Loading…
Reference in New Issue
Block a user