ItzCrazyKns / Perplexica

Perplexica is an AI-powered search engine. It is an Open source alternative to Perplexity AI
MIT License
10.67k stars 931 forks source link

Update Switcher.tsx #185

Closed yuting1214 closed 1 week ago

yuting1214 commented 2 weeks ago

It looks like the problem resulting from the developers were trying to integrate the components from "lucide-react" into their self-created components.

The props for "ThemeSwitcher" did not support "size" as argument comparing to the interface from "lucide-react"

import { Camera } from 'lucide-react';

// Usage
const App = () => {
  return <Camera color="red" size={48} />;
};

export default App;

That's why I slightly update the parent component(ThemeSwitcher), instead of children components like (EmptyChat and Navnar).

Hope this would help.(I've tested it.

ItzCrazyKns commented 1 week ago

Fixed in #168