Include locale on all links and routers

This commit is contained in:
Takeshi Kimata
2024-05-04 12:19:53 +09:00
parent ec9e2da7bc
commit 747d191412
20 changed files with 104 additions and 61 deletions

View File

@@ -7,9 +7,10 @@ import { fetchRuns, createRun, deleteRun } from "./runsControl";
type Props = {
projectId: string;
locale: string;
};
export default function RunsPage({ projectId }: Props) {
export default function RunsPage({ projectId, locale }: Props) {
const [runs, setRuns] = useState([]);
useEffect(() => {
@@ -66,6 +67,7 @@ export default function RunsPage({ projectId }: Props) {
projectId={projectId}
runs={runs}
onDeleteRun={onDeleteClick}
locale={locale}
/>
</div>
);