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
|
// 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
|
// International. See the License terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
|
||||||
|
|
||||||
|
"use client";
|
||||||
|
|
||||||
import styled from "styled-components";
|
import styled from "styled-components";
|
||||||
|
|
||||||
export const ButtonsWrapper = styled.div`
|
export const ButtonsWrapper = styled.div`
|
||||||
|
@ -26,18 +26,21 @@
|
|||||||
|
|
||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import { ConfirmRouteContext } from "@/app/(root)/confirm/confirmRoute";
|
import { useContext, useState } from "react";
|
||||||
import withLoader from "@/app/(root)/confirm/withLoader";
|
import { useTranslation } from "react-i18next";
|
||||||
|
|
||||||
import { Button, ButtonSize } from "@docspace/shared/components/button";
|
import { Button, ButtonSize } from "@docspace/shared/components/button";
|
||||||
import { Text } from "@docspace/shared/components/text";
|
import { Text } from "@docspace/shared/components/text";
|
||||||
import { toastr } from "@docspace/shared/components/toast";
|
import { toastr } from "@docspace/shared/components/toast";
|
||||||
import { PRODUCT_NAME } from "@docspace/shared/constants";
|
import { PRODUCT_NAME } from "@docspace/shared/constants";
|
||||||
import { useContext, useEffect, useState } from "react";
|
|
||||||
import { useTranslation } from "react-i18next";
|
import { ConfirmRouteContext } from "@/app/(root)/confirm/confirmRoute";
|
||||||
import { ButtonsWrapper } from "./ChangeOwner.styled";
|
import withLoader from "@/app/(root)/confirm/withLoader";
|
||||||
import { TError, WithLoaderProps } from "@/types";
|
import { TError, WithLoaderProps } from "@/types";
|
||||||
import { ownerChange } from "@/utils/actions";
|
import { ownerChange } from "@/utils/actions";
|
||||||
|
|
||||||
|
import { ButtonsWrapper } from "./ChangeOwner.styled";
|
||||||
|
|
||||||
type ChangeOwnerFormProps = {
|
type ChangeOwnerFormProps = {
|
||||||
newOwner?: string;
|
newOwner?: string;
|
||||||
} & WithLoaderProps;
|
} & WithLoaderProps;
|
||||||
|
Loading…
Reference in New Issue
Block a user