pyspur icon indicating copy to clipboard operation
pyspur copied to clipboard

Bugfix/app freeze

Open preet-bhadra opened this issue 10 months ago • 0 comments

[!IMPORTANT] Fix app freeze by correcting SettingsModal import and improving modal state management in Header.tsx and SettingsModal.tsx.

  • Header.tsx:
    • Fix import: Rename SettingsCard to SettingsModal.
    • Add state isSettingsModalOpen to manage SettingsModal visibility.
    • Replace SettingsCard with a button to toggle SettingsModal.
  • SettingsModal.tsx:
    • Remove unused imports and useDisclosure hook.
    • Add SettingsModalProps interface for props.
    • Use activeTab state to toggle between 'appearance' and 'api-keys' tabs.
    • Simplify modal rendering by removing unnecessary fragments and components.

This description was created by Ellipsis for 0a9b5b659d0d6d3a8ebf941eced9145d2d929203. It will automatically update as commits are pushed.

preet-bhadra avatar Feb 27 '25 16:02 preet-bhadra