Skip to content

Commit

Permalink
fixed type error
Browse files Browse the repository at this point in the history
  • Loading branch information
zeepk committed May 17, 2023
1 parent 206fd97 commit eebb0a6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/components/MinigamesTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,13 @@ import type { Minigame } from "../types/user-types";
import { minigameNameArray, TotalSkillsRs3 } from "../utils/constants";

type SortDigit = -1 | 0 | 1;
export type GainsPeriod = "day" | "week" | "month" | "year" | "dxp";
export type GainsPeriod =
| "day"
| "yesterday"
| "week"
| "month"
| "year"
| "dxp";

const MinigamesTable = () => {
const router = useRouter();
Expand Down Expand Up @@ -76,7 +82,7 @@ const MinigamesTable = () => {
/>
<GainsHeaderDropdown
gainsPeriod={gainsPeriod}
options={["day", "week", "month", "year"]}
options={["day", "yesterday", "week", "month", "year"]}
setGainsPeriod={setGainsPeriod}
/>
</tr>
Expand Down

0 comments on commit eebb0a6

Please sign in to comment.