Skip to content

Commit

Permalink
refactor: move repair component into the modal folder
Browse files Browse the repository at this point in the history
  • Loading branch information
josdejong committed Aug 8, 2021
1 parent 3d2dce2 commit 6e4ef15
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/lib/components/modals/JSONRepairModal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<script>
import { getContext } from 'svelte'
import JSONRepairComponent from '../modes/repairmode/RepairMode.svelte'
import JSONRepairComponent from './repair/JSONRepairComponent.svelte'
export let text
export let onParse
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@import '../../../styles.scss';
@import '../../../styles';

.json-repair {
.json-repair-component {
flex: 1;
display: flex;
flex-direction: column;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
]
</script>

<div class="json-repair" bind:this={domJsonRepair}>
<div class="json-repair-component" bind:this={domJsonRepair}>
<Menu {items}>
<div slot="left" class="info">Repair invalid JSON, then click apply</div>
</Menu>
Expand Down Expand Up @@ -186,4 +186,4 @@
/>
</div>

<style src="./RepairMode.scss"></style>
<style src="./JSONRepairComponent.scss"></style>

0 comments on commit 6e4ef15

Please sign in to comment.