-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
60 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
app/(main)/(routes)/matches/(routes)/[matchId]/(components)/ChipInputModal/hooks.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { useQueryControlledModal } from "@/components/Modal"; | ||
import { useDisclosure } from "@/components/Modal"; | ||
|
||
export const useChipInputModal = () => { | ||
return useQueryControlledModal("chip-input"); | ||
return useDisclosure(); | ||
}; |
4 changes: 2 additions & 2 deletions
4
app/(main)/(routes)/matches/(routes)/[matchId]/(components)/GameInputModal/hooks.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { useQueryControlledModal } from "@/components/Modal"; | ||
import { useDisclosure } from "@/components/Modal"; | ||
|
||
export const useGameInputModal = () => { | ||
return useQueryControlledModal("game-input"); | ||
return useDisclosure(); | ||
}; |
4 changes: 2 additions & 2 deletions
4
app/(main)/(routes)/matches/(routes)/[matchId]/(components)/MatchPlayerInputButton/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
"use client"; | ||
|
||
import { Button, ButtonProps } from "@/components/Button"; | ||
import { useMatchPlayerInputModal } from "../MatchPlayerInputModal/hooks"; | ||
import { useDisclosure } from "@/components/Modal"; | ||
|
||
export function MatchPlayerInputButton(props: Omit<ButtonProps, "onClick">) { | ||
const { onOpen } = useMatchPlayerInputModal(); | ||
const { onOpen } = useDisclosure(); | ||
return <Button {...props} onClick={onOpen} />; | ||
} |
15 changes: 11 additions & 4 deletions
15
...utes)/[matchId]/(components)/MatchPlayerInputModal/(components)/ModalController/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 0 additions & 7 deletions
7
app/(main)/(routes)/matches/(routes)/[matchId]/(components)/MatchPlayerInputModal/hooks.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
.../(routes)/[matchId]/(components)/MatchTable/(components)/MatchPlayerInputButton/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
"use client"; | ||
|
||
import { useMatchPlayerInputModal } from "../../../MatchPlayerInputModal/hooks"; | ||
import { useDisclosure } from "@/components/Modal"; | ||
|
||
export function MatchPlayerInputButton( | ||
props: React.ComponentPropsWithoutRef<"button">, | ||
) { | ||
const gameInputModal = useMatchPlayerInputModal(); | ||
const gameInputModal = useDisclosure(); | ||
|
||
return <button onClick={gameInputModal.onOpen} {...props}></button>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters