Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Irev-Dev committed Aug 15, 2024
1 parent 4b54af7 commit fc4866f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
14 changes: 12 additions & 2 deletions src/components/CustomIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,12 @@ const CustomIconMap = {
</svg>
),
revolve: (
<svg viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" aria-label="revolve">
<svg
viewBox="0 0 20 20"
fill="none"
xmlns="http://www.w3.org/2000/svg"
aria-label="revolve"
>
<path
fillRule="evenodd"
clipRule="evenodd"
Expand Down Expand Up @@ -1000,7 +1005,12 @@ const CustomIconMap = {
</svg>
),
sweep: (
<svg viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" aria-label="sweep">
<svg
viewBox="0 0 20 20"
fill="none"
xmlns="http://www.w3.org/2000/svg"
aria-label="sweep"
>
<path
fillRule="evenodd"
clipRule="evenodd"
Expand Down
4 changes: 2 additions & 2 deletions src/components/FileMachineProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ export const FileMachineProvider = ({
window.electron.path.sep +
createdName +
(createdName.endsWith(FILE_EXT) ? '' : FILE_EXT)
await create(createdPath)
if (event.data.content) {
await create(createdPath)
if (event.data.content) {
await window.electron.writeFile(createdPath, '')
}
}
Expand Down

0 comments on commit fc4866f

Please sign in to comment.