diff --git a/resources/ts/back/Components/PageConfigs/FieldGroup.tsx b/resources/ts/back/Components/PageConfigs/FieldGroup.tsx index 3da0fc19..e1755321 100644 --- a/resources/ts/back/Components/PageConfigs/FieldGroup.tsx +++ b/resources/ts/back/Components/PageConfigs/FieldGroup.tsx @@ -99,7 +99,7 @@ export default function FieldGroup({ zIndex: isDragging ? 50 : 0, }; - // Get all enum values, labels and names. + // Get all enum values, labels and names. const enumDynamicFieldTypes = usePage().props.enumDynamicFieldTypes as DynamicFieldTypes; // Set the current state of the accordion. @@ -109,12 +109,12 @@ export default function FieldGroup({ const currentEnum = Object.values(enumDynamicFieldTypes).find( (def) => def.value === currentField.type ); - // Set a prefix related to the current enum. + // Set a prefix related to the current enum. const enumCurrentBase = `${currentEnum?.name}_`; // Set the editable part of the current key. const [editableKey, setEditableKey] = useState(() => { - return (currentField.key.startsWith(enumCurrentBase)) ? currentField.key.split(enumCurrentBase)[1] : currentField.key; + return (currentField.key.startsWith(enumCurrentBase)) ? currentField.key.replace(enumCurrentBase, "") : currentField.key; }); // Set the complete key (prefix + editable) that will be sent to the backend. @@ -122,7 +122,6 @@ export default function FieldGroup({ // Set the state of copying key. const [copied, setCopied] = useState(false); - // Copy the complete key in the clipboard. const handleClick = () => { navigator.clipboard.writeText(completeKey); @@ -133,7 +132,7 @@ export default function FieldGroup({ /** * Reorder the elements list. * @param event DragEndEvent - * @return void + * @return void */ const handleOnDragEnd = (event: DragEndEvent) => { const { active, over } = event; diff --git a/resources/views/front/pages/finance.blade.php b/resources/views/front/pages/finance.blade.php index 53c10e27..7f39d2fa 100644 --- a/resources/views/front/pages/finance.blade.php +++ b/resources/views/front/pages/finance.blade.php @@ -1,7 +1,8 @@ @extends('front.layouts.layout') @section('title', 'Découvrez comment devenir actionnaire | Le groupe LDC') -@section('description', 'Vous souhaitez devenir actionnaire ? Consultez toutes les informations financières et chiffres +@section('description', + 'Vous souhaitez devenir actionnaire ? Consultez toutes les informations financières et chiffres clés ainsi que les dernières publications investisseurs.') @section('content') @@ -45,29 +46,18 @@ @endphp + - + {{-- - + --}} @endsection