css tweaks start

This commit is contained in:
YasinOnm08 2024-09-30 08:41:06 +02:00
parent 7c399a74f2
commit 37bfa22891
4 changed files with 25 additions and 10 deletions

View file

@ -1,3 +1,4 @@
"use client";
import React, { useState, useEffect } from 'react';
// Define the available model options
@ -18,9 +19,10 @@ const modelDropdown = {
const Models: React.FC = () => {
// Initialize state with value from localStorage or default to ''
const [selectedModel, setSelectedModel] = useState('');
const radioSelection = localStorage.getItem('radioSelection')
const [radioSelection, setRadioSelection] = useState<string | null>("")
useEffect(() => {
setRadioSelection(localStorage.getItem('radioSelection'))
const handleStorageChange = () => {
setSelectedModel(localStorage.getItem('selectedModel') || '');
};