Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
taga3s committed Aug 21, 2024
1 parent ef540dd commit 4a00f4d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions app/api/workExperience/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ type Response = {
limit: number;
};

const fetchWorkExperience = async (c: Context) => {
const fetchWorkExperiences = async (c: Context) => {
const res = await apiClient.GET<Response>(c, "/work-experience");
return res.contents.map((content) => {
return { ...content };
});
};

export { fetchWorkExperience };
export { fetchWorkExperiences };
6 changes: 3 additions & 3 deletions app/components/history/HistoryPresenter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ import { presenterLayout } from "./HistoryPresenter.css";
import { HistoryWorkExperience } from "./HistoryWorkExperience";

type Props = {
workExperience: WorkExperience[];
workExperiences: WorkExperience[];
};

const HistoryPresenter: FC<Props> = (props) => {
const { workExperience } = props;
const { workExperiences } = props;

return (
<div class={presenterLayout}>
<HistoryWorkExperience workExperience={workExperience} />
<HistoryWorkExperience workExperiences={workExperiences} />
<HistoryEducationalBackground />
</div>
);
Expand Down
6 changes: 3 additions & 3 deletions app/components/history/HistoryWorkExperience.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ import { Section } from "../Section";
import { workExperienceDescription, workExperienceList } from "./HistoryWorkExperience.css";

type Props = {
workExperience: WorkExperience[];
workExperiences: WorkExperience[];
};

const HistoryWorkExperience: FC<Props> = (props) => {
const { workExperience } = props;
const { workExperiences } = props;

return (
<Section title="Work experience">
<ul class={workExperienceList}>
{workExperience
{workExperiences
.toSorted((a, b) => a.order - b.order)
.map((item) => (
<li key={item.company}>
Expand Down
6 changes: 3 additions & 3 deletions app/routes/history.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { createRoute } from "honox/factory";
import { HistoryPresenter } from "../components/history/HistoryPresenter";
import { fetchWorkExperience } from "../api/workExperience";
import { fetchWorkExperiences } from "../api/workExperience";

export default createRoute(async (c) => {
const workExperience = await fetchWorkExperience(c);
return c.render(<HistoryPresenter workExperience={workExperience} />);
const workExperiences = await fetchWorkExperiences(c);
return c.render(<HistoryPresenter workExperiences={workExperiences} />);
});

0 comments on commit 4a00f4d

Please sign in to comment.