Skip to content

Commit

Permalink
refactor: rename talks to presentations
Browse files Browse the repository at this point in the history
  • Loading branch information
mh-zeynal committed Nov 25, 2023
1 parent dd51171 commit 9004c0e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion frontend/src/Components/item-card/item-card.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ const ItemCard = ({
>
<CardHeader
title={title}
subheader={isWorkshop ? 'workshop' : 'talk'}
subheader={isWorkshop ? 'workshop' : 'presentation'}
titleTypographyProps={{ variant: 'subtitle1' }}
subheaderTypographyProps={{ variant: 'overline' }}
sx={{ bgcolor: isFull && !hasBought ? 'action.disabledBackground' : 'var(--background-color-lighter-60)' }}
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/pages/my-account/MyAccount.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import useMyAccount from './useMyAccount.js';
import {Helper} from "../../utils/Helper.js";
import Toast from "../../Components/toast/Toast.jsx";

const TAB_ITEMS = ['Workshops', 'Talks', 'Cart'];
const TAB_ITEMS = ['Workshops', 'Presentations', 'Cart'];

const MyAccount = () => {
const { talks,
Expand All @@ -25,8 +25,8 @@ const MyAccount = () => {
switch (tabValue) {
case 'Workshops':
return <List type="Workshops" items={workshops} />;
case 'Talks':
return <List type="Talks" items={talks} />;
case 'Presentations':
return <List type="Presentations" items={talks} />;
case 'Cart':
return <List type="Cart" items={cart} />;
default:
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/pages/workshops/WorkshopsPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ export default function WorkshopsPage() {
description={e.desc && Helper.omitLongString(e.desc, 50)}
purchaseState={0}
presenterName={e.presenters.join(", ")}
startDate={e.start_date}
endDate={e.end_date}
startDate={new Date(e.start_date).toLocaleString()}
endDate={new Date(e.end_date).toLocaleString()}
level={e.level}
onClickAddToCart={() => addToCart({
id: e.id,
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/providers/config-provider/ROUTES.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ const ROUTES = {
component: <PresenterDetailPage />,
hideFromAppBar: true,
},
workshops: {
path: '/workshops',
title: 'Workshops',
talks: {
path: '/talks',
title: 'talks',
component: <WorkshopsPage />,
},
// committee: {
Expand Down

0 comments on commit 9004c0e

Please sign in to comment.