Web: Client: Data Import: translate UsersInfoBlock to ts

This commit is contained in:
Vladimir Khvan 2024-06-21 16:15:15 +05:00
parent 2ffd906b08
commit 22bd4251d8
2 changed files with 14 additions and 2 deletions

View File

@ -28,6 +28,7 @@ import styled from "styled-components";
import { HelpButton } from "@docspace/shared/components/help-button";
import { Text } from "@docspace/shared/components/text";
import { UsersInfoBlockProps } from "../types";
const Wrapper = styled.div`
margin: 16px 0;
@ -40,7 +41,10 @@ const Wrapper = styled.div`
}
`;
const UsersInfoWrapper = styled.div`
const UsersInfoWrapper = styled.div<{
selectedUsers: number;
totalLicenceLimit: number;
}>`
display: flex;
align-items: center;
width: fit-content;
@ -89,7 +93,7 @@ const UsersInfoBlock = ({
totalUsers,
totalUsedUsers,
totalLicenceLimit,
}) => {
}: UsersInfoBlockProps) => {
return (
<Wrapper>
{selectedUsers > totalLicenceLimit && (

View File

@ -405,3 +405,11 @@ export interface NoEmailUsersProps {
t: TFunciton;
users: number;
}
export interface UsersInfoBlockProps {
t: TFunciton;
selectedUsers: number;
totalUsers: number;
totalUsedUsers: number;
totalLicenceLimit: number;
}