-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: confirmation dialog for deeplinks #783
Conversation
lily-de
commented
Jan 26, 2025
•
edited
Loading
edited
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pre-stamping, but check out the comments and see what you think!
import 'react-toastify/dist/ReactToastify.css'; | ||
import { ToastContainer } from 'react-toastify'; | ||
import { ModelProvider } from './components/settings/models/ModelContext'; | ||
import { ActiveKeysProvider } from './components/settings/api_keys/ActiveKeysContext'; | ||
|
||
export default function App() { | ||
const [fatalError, setFatalError] = useState<string | null>(null); | ||
const [modalVisible, setModalVisible] = useState(false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: can we use a more descriptive name of which modal? Something like confirmExtensionModalVisible
}) { | ||
return ( | ||
<div className="fixed inset-0 bg-black/20 backdrop-blur-sm z-[9999]"> | ||
<div className="fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[400px] bg-white dark:bg-gray-800 rounded-xl shadow-xl border border-gray-200 dark:border-gray-700"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did we reference other modals when grabbing all the bg-
border-
etc classes for this?
We might compare backgrounds to the ones available from @nahiyankhan's big stying push now that we have nice things like bg-subtle
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i copied what you have in the extensions folder but will double check!
it is also possible to use electron.show from main.ts if it was less trouble (fair bit of work to weave in a modal from the renderer side) - just one option (but this gives more control of course) |
ba7808e
to
bbb69b3
Compare