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
@@ -15,7 +15,7 @@ import { yupResolver } from "@hookform/resolvers/yup";
import { twMerge } from "tailwind-merge"; import { twMerge } from "tailwind-merge";
import * as yup from "yup"; 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 { useNotificationContext } from "@app/components/context/Notifications/NotificationProvider";
import { ProjectPermissionCan } from "@app/components/permissions"; import { ProjectPermissionCan } from "@app/components/permissions";
// TODO:(akhilmhdh) convert all the util functions like this into a lib folder grouped by functionality // 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" label="Secret Path"
className="flex-grow" className="flex-grow"
isRequired isRequired
icon={<SecretPathExamples />} icon={<GlobPatternExamples />}
> >
<Input <Input
{...register("secretPath")} {...register("secretPath")}
@@ -5,7 +5,7 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { motion } from "framer-motion"; import { motion } from "framer-motion";
import { twMerge } from "tailwind-merge"; import { twMerge } from "tailwind-merge";
import SecretPathExamples from "@app/components/basic/popups/SecretPathExamples"; import GlobPatternExamples from "@app/components/basic/popups/GlobPatternExamples";
import { import {
Checkbox, Checkbox,
FormControl, FormControl,
@@ -142,7 +142,7 @@ export const MultiEnvProjectPermission = ({
<div className="flex items-center gap-2"> <div className="flex items-center gap-2">
Secret Path Secret Path
<span className="text-xs normal-case"> <span className="text-xs normal-case">
<SecretPathExamples /> <GlobPatternExamples />
</span> </span>
</div> </div>
</Th> </Th>
@@ -3,7 +3,7 @@ import { Controller, useForm } from "react-hook-form";
import { yupResolver } from "@hookform/resolvers/yup"; import { yupResolver } from "@hookform/resolvers/yup";
import * as yup from "yup"; import * as yup from "yup";
import SecretPathExamples from "@app/components/basic/popups/SecretPathExamples"; import GlobPatternExamples from "@app/components/basic/popups/GlobPatternExamples";
import { import {
Button, Button,
FormControl, FormControl,
@@ -86,7 +86,7 @@ export const AddWebhookForm = ({
/> />
<FormControl <FormControl
label="Secret Path" label="Secret Path"
icon={<SecretPathExamples />} icon={<GlobPatternExamples />}
isRequired isRequired
isError={Boolean(errors?.secretPath)} isError={Boolean(errors?.secretPath)}
errorText={errors?.secretPath?.message} errorText={errors?.secretPath?.message}