diff --git a/src/shared/ui/SelectUserType/index.tsx b/src/shared/ui/SelectUserType/index.tsx index 6de3e83..367f68b 100644 --- a/src/shared/ui/SelectUserType/index.tsx +++ b/src/shared/ui/SelectUserType/index.tsx @@ -1,6 +1,6 @@ 'use client'; -import { useState } from 'react'; +import React, { useState, useEffect } from 'react'; import { ArrowDown } from '@/shared/assets/icons'; interface Option { @@ -10,17 +10,25 @@ interface Option { interface SelectProps { options: Option[]; - defaultValue?: string; + value: string; onChange?: (value: string) => void; } -const SelectUserType = ({ options, defaultValue, onChange }: SelectProps) => { +const SelectUserType = ({ options, value, onChange }: SelectProps) => { const [isOpen, setIsOpen] = useState(false); const [selectedOption, setSelectedOption] = useState