uchange component name to globpatternexample

This commit is contained in:
JanetEne
2023-09-14 02:17:33 +01:00
parent 2554ad2b3c
commit c30381edbc
3 changed files with 6 additions and 6 deletions

View File

@@ -15,7 +15,7 @@ import { yupResolver } from "@hookform/resolvers/yup";
import { twMerge } from "tailwind-merge";
import * as yup from "yup";
import SecretPathExamples from "@app/components/basic/popups/SecretPathExamples";
import GlobPatternExamples from "@app/components/basic/popups/GlobPatternExamples";
import { useNotificationContext } from "@app/components/context/Notifications/NotificationProvider";
import { ProjectPermissionCan } from "@app/components/permissions";
// TODO:(akhilmhdh) convert all the util functions like this into a lib folder grouped by functionality
@@ -329,7 +329,7 @@ export const SecretDropzone = ({
label="Secret Path"
className="flex-grow"
isRequired
icon={<SecretPathExamples />}
icon={<GlobPatternExamples />}
>
<Input
{...register("secretPath")}

View File

@@ -5,7 +5,7 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { motion } from "framer-motion";
import { twMerge } from "tailwind-merge";
import SecretPathExamples from "@app/components/basic/popups/SecretPathExamples";
import GlobPatternExamples from "@app/components/basic/popups/GlobPatternExamples";
import {
Checkbox,
FormControl,
@@ -142,7 +142,7 @@ export const MultiEnvProjectPermission = ({
<div className="flex items-center gap-2">
Secret Path
<span className="text-xs normal-case">
<SecretPathExamples />
<GlobPatternExamples />
</span>
</div>
</Th>

View File

@@ -3,7 +3,7 @@ import { Controller, useForm } from "react-hook-form";
import { yupResolver } from "@hookform/resolvers/yup";
import * as yup from "yup";
import SecretPathExamples from "@app/components/basic/popups/SecretPathExamples";
import GlobPatternExamples from "@app/components/basic/popups/GlobPatternExamples";
import {
Button,
FormControl,
@@ -86,7 +86,7 @@ export const AddWebhookForm = ({
/>
<FormControl
label="Secret Path"
icon={<SecretPathExamples />}
icon={<GlobPatternExamples />}
isRequired
isError={Boolean(errors?.secretPath)}
errorText={errors?.secretPath?.message}