forked from React-Group/interstellar_ai
css tweaks start
This commit is contained in:
parent
7c399a74f2
commit
37bfa22891
4 changed files with 25 additions and 10 deletions
|
@ -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') || '');
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue