Don't build plugins

This commit is contained in:
Gregory Schier
2024-02-24 18:58:51 -08:00
parent 73f0e29c59
commit 79ee5a29b1
2 changed files with 2 additions and 2 deletions

View File

@@ -46,8 +46,6 @@ jobs:
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
- name: Install dependencies
run: npm ci
- name: Build plugins
run: npm run build:plugins
- name: Run tests
run: npm test
# Pin dev version to get non-default targets

View File

@@ -1,4 +1,5 @@
import React, { createContext, useContext, useMemo, useState } from 'react';
import { useHotKey } from '../hooks/useHotKey';
import { trackEvent } from '../lib/analytics';
import type { DialogProps } from './core/Dialog';
import { Dialog } from './core/Dialog';
@@ -59,6 +60,7 @@ export const DialogProvider = ({ children }: { children: React.ReactNode }) => {
function DialogInstance({ id, render, ...props }: DialogEntry) {
const { actions } = useContext(DialogContext);
const children = render({ hide: () => actions.hide(id) });
useHotKey('popup.close', () => actions.hide(id));
return (
<Dialog open onClose={() => actions.hide(id)} {...props}>
{children}