Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmajor committed Aug 14, 2024
1 parent 51f8b99 commit 6d7b1da
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion resources/js/Pages/Artists/Components/Form/Form.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
let errors = $derived(Object.values($form.errors));
let photoForm = $state() as PhotoForm;
let photoForm: PhotoForm = $state()!;
function onsubmit(event: SubmitEvent) {
event.preventDefault();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
onclick: () => void;
} = $props();
let naturalWidth = $state() as number;
let naturalHeight = $state() as number;
let naturalWidth: number = $state()!;
let naturalHeight: number = $state()!;
let dimensions = $derived(`${naturalWidth}×${naturalHeight}`);
</script>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
$form.photo.grayscale = activePicker.type === 'current' ? (currentPhoto?.grayscale ?? true) : true;
});
let faceCrop = $state() as CropValue;
let faceCrop: CropValue = $state()!;
$effect(() => {
if (!faceCrop) return;
Expand Down

0 comments on commit 6d7b1da

Please sign in to comment.