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

View File

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