Login:Components:ChangeOwnerForm: add use client and change imports

This commit is contained in:
Darya Umrikhina 2024-07-29 12:13:10 +04:00
parent 8e7bbdc8ad
commit e6741fcab9
2 changed files with 10 additions and 5 deletions

View File

@ -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`

View File

@ -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;