Skip to content

Commit

Permalink
chore: fix ts
Browse files Browse the repository at this point in the history
  • Loading branch information
casperiv0 committed Oct 19, 2023
1 parent cf94e58 commit 5b29157
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 81 deletions.
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"extends": [
"@casperiv/eslint-config",
"@casperiv/eslint-config-react",
"@casperiv/eslint-config-next"
"@casperiv/eslint-config-next",
"plugin:deprecation/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
Expand Down
1 change: 0 additions & 1 deletion apps/client/src/components/auth/api-verification.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export function ApiVerification(props: Props) {

const { error } = useQuery({
refetchOnWindowFocus: false,
keepPreviousData: true,
queryKey: ["api-verification"],
retry: 0,
queryFn: async () => {
Expand Down
4 changes: 2 additions & 2 deletions apps/client/src/components/dispatch/modals/tones-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export function TonesModal({ types }: Props) {
});

helpers.resetForm();
await queryClient.resetQueries(["active-tones"]);
await queryClient.resetQueries({ queryKey: ["active-tones"] });
}
}

Expand All @@ -57,7 +57,7 @@ export function TonesModal({ types }: Props) {
});

if (json) {
await queryClient.resetQueries(["active-tones"]);
await queryClient.resetQueries({ queryKey: ["active-tones"] });
resetForm();

toastMessage({
Expand Down
2 changes: 1 addition & 1 deletion apps/client/src/hooks/realtime/use-active-dispatchers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export function useActiveDispatchers() {
useListener(
{ eventName: SocketEvents.UpdateDispatchersState, checkHasListeners: true },
async () => {
await queryClient.resetQueries(["/dispatch"]);
await queryClient.resetQueries({ queryKey: ["/dispatch"] });
},
);

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"@casperiv/eslint-config-next": "8.0.0",
"@casperiv/eslint-config-react": "8.0.0",
"eslint": "8.51.0",
"eslint-plugin-deprecation": "^2.0.0",
"lerna": "^7.3.1",
"lint-staged": "^15.0.1"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/components/button/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const buttonVariants = cva(
},
);

type BaseButtonProps = Omit<JSX.IntrinsicElements["button"], "onPress"> & AriaButtonProps;
type BaseButtonProps = Omit<React.JSX.IntrinsicElements["button"], "onPress"> & AriaButtonProps;
export type ButtonVariantProps = VariantProps<typeof buttonVariants>;
export type ButtonProps = BaseButtonProps & ButtonVariantProps;

Expand Down
117 changes: 42 additions & 75 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5b29157

Please sign in to comment.