Web: Client: Data Import: translate UsersInfoBlock to ts
This commit is contained in:
parent
2ffd906b08
commit
22bd4251d8
@ -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 && (
|
@ -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;
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user