Skip to content

Commit

Permalink
fixup! 目標の状態を更新したら表示を自動で更新する
Browse files Browse the repository at this point in the history
  • Loading branch information
MurakawaTakuya committed Jan 16, 2025
1 parent e357e4a commit c3d18da
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion src/app/discover/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,15 @@ import DashBoard from "@/Components/DashBoard/DashBoard";
import GoalModalButton from "@/Components/GoalModal/GoalModalButton";
import { ResultProvider } from "@/utils/ResultContext";
import ToggleButton from "@mui/material/ToggleButton";
import ToggleButtonGroup from "@mui/material/ToggleButtonGroup";
import { useState } from "react";
import { CenteredToggleButtonGroup } from "../mycontent/page";
import styled from "styled-components";

const CenteredToggleButtonGroup = styled(ToggleButtonGroup)({
display: "flex",
justifyContent: "center",
margin: "30px 0 5px",
});

export default function Discover() {
const [value, setValue] = useState<"finished" | "pending">("finished");
Expand Down
2 changes: 1 addition & 1 deletion src/app/mycontent/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import ToggleButton from "@mui/material/ToggleButton";
import ToggleButtonGroup from "@mui/material/ToggleButtonGroup";
import { useState } from "react";

export const CenteredToggleButtonGroup = styled(ToggleButtonGroup)({
const CenteredToggleButtonGroup = styled(ToggleButtonGroup)({
display: "flex",
justifyContent: "center",
margin: "30px 0 5px",
Expand Down

0 comments on commit c3d18da

Please sign in to comment.