Compare commits

..
Author SHA1 Message Date
Maycon Santos 7578595f05 Update posture checks documentation links (#339) 2024-02-22 21:46:55 +01:00
8 changed files with 18 additions and 19 deletions

No files matched your search

+1 -1
View File
@@ -48,7 +48,7 @@ export default function PostureChecksPage() {
</Paragraph>
<Paragraph>
Learn more about
<InlineLink href={"#"} target={"_blank"}>
<InlineLink href={"https://docs.netbird.io/how-to/manage-posture-checks"} target={"_blank"}>
Posture Checks
<ExternalLinkIcon size={12} />
</InlineLink>
+11 -12
View File
@@ -18,8 +18,6 @@ export function DataTableRowsPerPage<TData>({
disabled,
}: DataTablePaginationProps<TData>) {
const [open, setOpen] = React.useState(false);
const [isHovered, setIsHovered] = React.useState(false);
const textColorClass = isHovered ? "text-white" : "text-nb-gray-300";
return (
<>
@@ -30,18 +28,16 @@ export function DataTableRowsPerPage<TData>({
role="combobox"
aria-expanded={open}
disabled={disabled}
onMouseEnter={() => setIsHovered(true)}
onMouseLeave={() => setIsHovered(false)}
className="w-[200px] justify-between"
>
<RowsIcon size={15} className={textColorClass} />
<RowsIcon size={15} className={"text-nb-gray-300"} />
<div>
<span className={textColorClass}>
<span className={"text-white"}>
{table.getState().pagination.pageSize}
</span>
<span className={textColorClass}> rows per page</span>
<span className={"text-nb-gray-300"}> rows per page</span>
</div>
<ChevronDown className={`h-4 w-4 opacity-50 ${textColorClass}`} />
<ChevronDown className="h-4 w-4 opacity-50" />
</Button>
</PopoverTrigger>
<PopoverContent className="w-[200px] p-0" sideOffset={7}>
@@ -60,15 +56,18 @@ export function DataTableRowsPerPage<TData>({
className={cn(
"cursor-pointer",
"flex gap-2 px-2 py-1.5 my-1 mx-1 rounded-md items-center hover:dark:bg-nb-gray-800 text-nb-gray-400 hover:text-white",
table.getState().pagination.pageSize === val ? "text-white" : "",
table.getState().pagination.pageSize === val
? "text-white"
: "",
)}
>
<Check
size={15}
className={cn(
"shrink-0",
table.getState().pagination.pageSize === val ? "opacity-100 text-white" : "opacity-0",
textColorClass,
"text-white shrink-0",
table.getState().pagination.pageSize === val
? "opacity-100"
: "opacity-0",
)}
/>
{val}
+1 -1
View File
@@ -50,7 +50,7 @@ export function OSLogo({ os }: { os: string }) {
if (icon === OperatingSystem.APPLE)
return <Image src={AppleLogo} alt={""} width={14} />;
if (icon === OperatingSystem.IOS)
return <Image src={AppleLogo} alt={""} width={14} />;
return <IOSIcon className={"fill-white"} size={20} />;
if (icon === OperatingSystem.ANDROID)
return <FcAndroidOs className={"text-white text-2xl brightness-200"} />;
@@ -171,7 +171,7 @@ const CheckContent = ({ value, onChange }: Props) => {
<div className={"w-full"}>
<Paragraph className={"text-sm mt-auto"}>
Learn more about
<InlineLink href={"#"} target={"_blank"}>
<InlineLink href={"https://docs.netbird.io/how-to/manage-posture-checks#geolocation-check"} target={"_blank"}>
Country & Region Check
<ExternalLinkIcon size={12} />
</InlineLink>
@@ -86,7 +86,7 @@ const CheckContent = ({ value, onChange }: Props) => {
<div className={"w-full"}>
<Paragraph className={"text-sm mt-auto"}>
Learn more about
<InlineLink href={"#"} target={"_blank"}>
<InlineLink href={"https://docs.netbird.io/how-to/manage-posture-checks#net-bird-client-version-check"} target={"_blank"}>
Client Version Check
<ExternalLinkIcon size={12} />
</InlineLink>
@@ -215,7 +215,7 @@ const CheckContent = ({ value, onChange }: Props) => {
<div className={"w-full"}>
<Paragraph className={"text-sm mt-auto"}>
Learn more about
<InlineLink href={"#"} target={"_blank"}>
<InlineLink href={"https://docs.netbird.io/how-to/manage-posture-checks#operating-system-version-check"} target={"_blank"}>
Operating System Check
<ExternalLinkIcon size={12} />
</InlineLink>
@@ -222,7 +222,7 @@ export default function PostureCheckModal({
Learn more about
<InlineLink
href={
"https://docs.netbird.io/how-to/routing-traffic-to-private-networks"
"https://docs.netbird.io/how-to/manage-posture-checks"
}
target={"_blank"}
>
@@ -174,7 +174,7 @@ export default function PostureCheckTable({ postureChecks, isLoading }: Props) {
learnMore={
<>
Learn more about
<InlineLink href={"#"} target={"_blank"}>
<InlineLink href={"https://docs.netbird.io/how-to/manage-posture-checks"} target={"_blank"}>
Posture Checks
<ExternalLinkIcon size={12} />
</InlineLink>