Skip to content

Commit

Permalink
refactor: Props => SaveFileProps
Browse files Browse the repository at this point in the history
Signed-off-by: tylerslaton <[email protected]>
  • Loading branch information
tylerslaton committed Sep 12, 2024
1 parent 09945d5 commit 356eb2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/saveFile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import { Button, Tooltip } from '@nextui-org/react';
import React from 'react';
import { GoDownload } from 'react-icons/go';

interface Props {
interface SaveFileProps {
content: any; // any javascript object
className?: string;
}

const SaveFile: React.FC<Props> = ({ content, className }) => {
const SaveFile: React.FC<SaveFileProps> = ({ content, className }) => {
const handleSave = () => {
window.electronAPI.saveFile(JSON.stringify(content, null, 2));
};
Expand Down

0 comments on commit 356eb2c

Please sign in to comment.