Skip to content

Commit

Permalink
Update to const and removed id
Browse files Browse the repository at this point in the history
  • Loading branch information
TheKrol committed Jul 20, 2024
1 parent d66825f commit d4bcb92
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions frontend/src/lib/components/Editor.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<script lang="ts">
import { onDestroy } from 'svelte';
import { onDestroy } from 'svelte';
import { currentFile } from '$lib/main';
import { addToast, ToastType } from '$lib/toast';
Expand All @@ -9,8 +8,6 @@
export let editorText: string;
export let previewWindow: HTMLElement;
const charCount = 500;
let showCommitModal = false;
let commitModal: HTMLElement;
let commitMessageInput: string = '';
Expand Down Expand Up @@ -160,11 +157,10 @@
<input
type="text"
placeholder="Enter your commit message here"
bind:this={commitMessageInput}
maxlength="500"
on:input={updateCharCount}
bind:value={commitMessageInput}
maxlength={CHAR_COUNT}
/>
<div id="charCount">500 characters remaining</div>
<div>{CHAR_COUNT - commitMessageInput.length} characters remaining</div>
<div class="commit-modal-buttons">
<button on:click={() => (showCommitModal = false)}>Deny</button>
<button on:click={confirmCommitHandler}>Confirm</button>
Expand Down

0 comments on commit d4bcb92

Please sign in to comment.