Closed haxybaxy closed 4 months ago
I think this is simply due to the way you import React in your component. With Übersicht, you have to import React like this:
import * as Uebersicht from "uebersicht";
const { React } = Uebersicht;
Please let me know if this solves your issue!
It does solve the issue! Thank you so much!
I am trying to add a tiny SVG icon to the left of the spaces component, so I made a component in a separate file to hold the icon, but whenever I import a file into the index.jsx file the bar will stop rendering.
I can add the SVG directly into the index file and it works, but I wanted to put it in a different file because it would be tidier this way, and it could be a nice feature to add officially since lots of sketchybar features have this.
Steps to reproduce the behavior:
const MyIcon = () => ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" width="24px" height="24px"
export default MyIcon;