+
{children}
{subTitle &&
{subTitle}
}
@@ -29,7 +29,7 @@ export type CardBodyProps = {
};
export const CardBody = ({ children, className }: CardBodyProps) => (
-
{children}
+
{children}
);
export type CardProps = {
diff --git a/frontend/src/components/v2/IconButton/IconButton.tsx b/frontend/src/components/v2/IconButton/IconButton.tsx
index eb49196177..d0500ab80f 100644
--- a/frontend/src/components/v2/IconButton/IconButton.tsx
+++ b/frontend/src/components/v2/IconButton/IconButton.tsx
@@ -22,9 +22,9 @@ const iconButtonVariants = cva(
{
variants: {
colorSchema: {
- primary: ['bg-primary', 'text-black', 'border-primary hover:bg-opacity-80'],
- secondary: ['bg-mineshaft', 'text-gray-300', 'border-mineshaft hover:bg-opacity-80'],
- danger: ['bg-red', 'text-white', 'border-red']
+ primary: ['bg-primary', 'text-black', 'border-primary hover:opacity-80'],
+ secondary: ['bg-mineshaft', 'text-gray-300', 'border-mineshaft hover:bg-bunker-400'],
+ danger: ['bg-[#973939] hover:bg-red', 'text-white', 'border-red']
},
variant: {
solid: '',
@@ -40,10 +40,10 @@ const iconButtonVariants = cva(
false: ''
},
size: {
- xs: ['text-xs', 'py-1', 'px-2'],
- sm: ['text-sm', 'py-2', 'px-3'],
- md: ['text-md', 'py-3', 'px-4'],
- lg: ['text-lg', 'py-3', 'px-6']
+ xs: ['text-xs', 'py-2', 'px-2'],
+ sm: ['text-sm', 'py-3', 'px-3'],
+ md: ['text-md', 'py-4', 'px-4'],
+ lg: ['text-lg', 'py-6', 'px-6']
}
},
compoundVariants: [
@@ -97,7 +97,7 @@ export const IconButton = forwardRef
(
ariaLabel,
isDisabled = false,
className,
- size = 'md',
+ size = 'sm',
variant = 'solid',
isRounded = true,
colorSchema = 'primary',
diff --git a/frontend/src/components/v2/Input/Input.tsx b/frontend/src/components/v2/Input/Input.tsx
index 8c3685dacd..28524c72d4 100644
--- a/frontend/src/components/v2/Input/Input.tsx
+++ b/frontend/src/components/v2/Input/Input.tsx
@@ -12,7 +12,7 @@ type Props = {
};
const inputVariants = cva(
- 'input w-full py-2 text-gray-400 placeholder-gray-500 placeholder-opacity-50',
+ 'input w-full py-2 text-gray-400 placeholder-gray-500 placeholder-opacity-50 outline-none focus:ring-2',
{
variants: {
size: {
@@ -91,8 +91,8 @@ export const Input = forwardRef(
ref={ref}
disabled={isDisabled}
className={twMerge(
- leftIcon ? 'pl-9' : 'pl-4',
- rightIcon ? 'pr-9' : 'pr-4',
+ leftIcon ? 'pl-9' : 'pl-2.5',
+ rightIcon ? 'pr-9' : 'pr-2.5',
inputVariants({ className, isError, size, isRounded, variant })
)}
/>
diff --git a/frontend/src/components/v2/Modal/Modal.tsx b/frontend/src/components/v2/Modal/Modal.tsx
index eea12fbc51..8c979473b1 100644
--- a/frontend/src/components/v2/Modal/Modal.tsx
+++ b/frontend/src/components/v2/Modal/Modal.tsx
@@ -36,9 +36,9 @@ export const ModalContent = forwardRef(
-
+
diff --git a/frontend/src/components/v2/Table/Table.tsx b/frontend/src/components/v2/Table/Table.tsx
index 3513bf62b6..d44ba77554 100644
--- a/frontend/src/components/v2/Table/Table.tsx
+++ b/frontend/src/components/v2/Table/Table.tsx
@@ -59,7 +59,7 @@ export type TrProps = {
} & HTMLAttributes;
export const Tr = ({ children, className, ...props }: TrProps): JSX.Element => (
-
+
{children}
);
@@ -71,7 +71,7 @@ export type ThProps = {
};
export const Th = ({ children, className }: ThProps): JSX.Element => (
- {children} |
+ {children} |
);
// table body
@@ -91,7 +91,7 @@ export type TdProps = {
} & TdHTMLAttributes;
export const Td = ({ children, className, ...props }: TdProps): JSX.Element => (
-
+ |
{children}
|
);
diff --git a/frontend/src/views/Settings/ProjectSettingsPage/ProjectSettingsPage.tsx b/frontend/src/views/Settings/ProjectSettingsPage/ProjectSettingsPage.tsx
index 02d49764fb..e6e8f317d2 100644
--- a/frontend/src/views/Settings/ProjectSettingsPage/ProjectSettingsPage.tsx
+++ b/frontend/src/views/Settings/ProjectSettingsPage/ProjectSettingsPage.tsx
@@ -64,6 +64,7 @@ export const ProjectSettingsPage = () => {
const host = window.location.origin;
const isEnvServiceAllowed =
subscriptionPlan !== plans.starter || host !== 'https://app.infisical.com';
+
const onRenameWorkspace = async (name: string) => {
try {
@@ -188,14 +189,14 @@ export const ProjectSettingsPage = () => {
});
console.log(res);
createNotification({
- text: 'Successfully created API token',
+ text: 'Successfully created a service token',
type: 'success'
});
return res.serviceToken;
} catch (error) {
console.error(error);
createNotification({
- text: 'Failed to create API token',
+ text: 'Failed to create a service token',
type: 'error'
});
}
@@ -251,13 +252,13 @@ export const ProjectSettingsPage = () => {
workspaceName={currentWorkspace?.name || ''}
onCreateToken={onCreateServiceToken}
/>
-
+
{t('settings-project:danger-zone')}
{t('settings-project:danger-zone-note')}
+
Type {currentWorkspace?.name} to delete the
workspace
@@ -278,7 +279,7 @@ export const ProjectSettingsPage = () => {
>
{t('settings-project:delete-project')}
-
+
{t('settings-project:delete-project-note')}
diff --git a/frontend/src/views/Settings/ProjectSettingsPage/components/EnvironmentSection/EnvironmentSection.tsx b/frontend/src/views/Settings/ProjectSettingsPage/components/EnvironmentSection/EnvironmentSection.tsx
index bb7a0a87e4..521394f9f6 100644
--- a/frontend/src/views/Settings/ProjectSettingsPage/components/EnvironmentSection/EnvironmentSection.tsx
+++ b/frontend/src/views/Settings/ProjectSettingsPage/components/EnvironmentSection/EnvironmentSection.tsx
@@ -1,5 +1,5 @@
import { Controller, useForm } from 'react-hook-form';
-import { faPencil, faTrashCan } from '@fortawesome/free-solid-svg-icons';
+import { faPencil, faPlus, faTrashCan } from '@fortawesome/free-solid-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { yupResolver } from '@hookform/resolvers/yup';
import * as yup from 'yup';
@@ -100,6 +100,7 @@ export const EnvironmentSection = ({
}
}}
colorSchema="primary"
+ leftIcon={
}
>
Add New Env
@@ -122,7 +123,7 @@ export const EnvironmentSection = ({
{slug} |
{
if (isEnvServiceAllowed) {
handlePopUpOpen('createUpdateEnv', { name, slug });
@@ -154,8 +155,8 @@ export const EnvironmentSection = ({
))
) : (
-
- No environmants found
+ |
+ No environments found
|
)}
diff --git a/frontend/src/views/Settings/ProjectSettingsPage/components/ProjectNameChangeSection/ProjectNameChangeSection.tsx b/frontend/src/views/Settings/ProjectSettingsPage/components/ProjectNameChangeSection/ProjectNameChangeSection.tsx
index 876564e1f5..02b488b555 100644
--- a/frontend/src/views/Settings/ProjectSettingsPage/components/ProjectNameChangeSection/ProjectNameChangeSection.tsx
+++ b/frontend/src/views/Settings/ProjectSettingsPage/components/ProjectNameChangeSection/ProjectNameChangeSection.tsx
@@ -41,9 +41,9 @@ export const ProjectNameChangeSection = ({
return (
|