Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
huchenlei committed Oct 24, 2024
1 parent 67d6c1c commit eae720c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
7 changes: 2 additions & 5 deletions src/renderer/components/ComfyUIContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,7 @@ const logContainerStyle: React.CSSProperties = {
height: '300px',
};

const ComfyUIContainer: React.FC<ComfyUIContainerProps> = ({
comfyPort,
preloadScript,
}) => {
const ComfyUIContainer: React.FC<ComfyUIContainerProps> = ({ comfyPort, preloadScript }) => {
const [showStreamingLogs, setShowStreamingLogs] = useState(false);

useEffect(() => {
Expand Down Expand Up @@ -60,4 +57,4 @@ const ComfyUIContainer: React.FC<ComfyUIContainerProps> = ({
);
};

export default ComfyUIContainer;
export default ComfyUIContainer;
7 changes: 1 addition & 6 deletions src/renderer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,7 @@ const Home: React.FC = () => {
}

if (comfyReady && comfyPort) {
return (
<ComfyUIContainer
comfyPort={comfyPort}
preloadScript={preloadScript}
/>
);
return <ComfyUIContainer comfyPort={comfyPort} preloadScript={preloadScript} />;
}

return (
Expand Down

0 comments on commit eae720c

Please sign in to comment.