Skip to content

Commit 9ba608a

Browse files
authored
Remove unused variables in the "workos" branch (#75)
* remove unused variables * include the workos branch in the workflows
1 parent e134ab4 commit 9ba608a

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

.github/workflows/lint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ on:
55
branches:
66
- develop
77
- main
8+
- workos
89
pull_request:
910
branches:
1011
- develop
1112
- main
13+
- workos
1214

1315
permissions:
1416
contents: write

.github/workflows/tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ on:
55
branches:
66
- develop
77
- main
8+
- workos
89
pull_request:
910
branches:
1011
- develop
1112
- main
13+
- workos
1214

1315
jobs:
1416
ci:

resources/js/components/delete-user.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
import { useForm } from '@inertiajs/react';
2-
import { FormEventHandler, useRef } from 'react';
2+
import { FormEventHandler } from 'react';
33

4-
import InputError from '@/components/input-error';
54
import { Button } from '@/components/ui/button';
6-
import { Input } from '@/components/ui/input';
7-
import { Label } from '@/components/ui/label';
85

96
import HeadingSmall from '@/components/heading-small';
107

118
import { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogTitle, DialogTrigger } from '@/components/ui/dialog';
129

1310
export default function DeleteUser() {
14-
const { data, setData, delete: destroy, processing, reset, errors, clearErrors } = useForm();
11+
const { delete: destroy, processing, reset, clearErrors } = useForm();
1512

1613
const deleteUser: FormEventHandler = (e) => {
1714
e.preventDefault();

resources/js/pages/settings/profile.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { type BreadcrumbItem, type SharedData } from '@/types';
22
import { Transition } from '@headlessui/react';
3-
import { Head, Link, useForm, usePage } from '@inertiajs/react';
3+
import { Head, useForm, usePage } from '@inertiajs/react';
44
import { FormEventHandler } from 'react';
55

66
import DeleteUser from '@/components/delete-user';
@@ -24,7 +24,7 @@ interface ProfileForm {
2424
email: string;
2525
}
2626

27-
export default function Profile({ status }: { status?: string }) {
27+
export default function Profile() {
2828
const { auth } = usePage<SharedData>().props;
2929

3030
const { data, setData, patch, errors, processing, recentlySuccessful } = useForm<Required<ProfileForm>>({

0 commit comments

Comments
 (0)