Skip to content

Commit

Permalink
Rename component
Browse files Browse the repository at this point in the history
  • Loading branch information
estyxx committed Oct 12, 2024
1 parent 9b403b1 commit 7bfc5c3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { FormattedMessage } from "react-intl";

import type { MyProfileWithGrantQuery } from "~/types";

import { Title } from "~/components/title";
import { TableItemHeader } from "~/components/table-item-header";
import { getCountryLabel } from "~/helpers/country-utils";
import { useCountries } from "~/helpers/use-countries";

Expand Down Expand Up @@ -66,7 +66,7 @@ const GrantInfo = ({
}) => {
return (
<div>
<Title>{label}</Title>
<TableItemHeader>{label}</TableItemHeader>
<Spacer size="xs" />
<Text>{children}</Text>
</div>
Expand Down
18 changes: 9 additions & 9 deletions frontend/src/components/schedule-event-detail/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { compile } from "~/helpers/markdown";
import { useCurrentLanguage } from "~/locale/context";

import { Fragment } from "react";
import { Title } from "~/components/title";
import { TableItemHeader } from "~/components/table-item-header";
import type { ProposalMaterial, TalkQueryResult } from "~/types";
import { ParticipantInfoSection } from "../participant-info-section";
import { EventTag } from "./event-tag";
Expand Down Expand Up @@ -164,9 +164,9 @@ export const ScheduleEventDetail = ({
)}
{elevatorPitch && (
<>
<Title>
<TableItemHeader>
<FormattedMessage id="scheduleEventDetail.elevatorPitch" />
</Title>
</TableItemHeader>
<Spacer size="small" />
<StyledText baseTextSize={1}>
{compile(elevatorPitch).tree}
Expand All @@ -176,9 +176,9 @@ export const ScheduleEventDetail = ({
)}
{abstract && (
<>
<Title>
<TableItemHeader>
<FormattedMessage id="scheduleEventDetail.abstract" />
</Title>
</TableItemHeader>
<Spacer size="small" />
<StyledText baseTextSize={2}>
{compile(abstract).tree}
Expand All @@ -188,9 +188,9 @@ export const ScheduleEventDetail = ({
)}
{tags && (
<>
<Title>
<TableItemHeader>
<FormattedMessage id="scheduleEventDetail.tags" />
</Title>
</TableItemHeader>
<Spacer size="small" />
<Text size={2} weight="strong">
{tags.join(", ")}
Expand Down Expand Up @@ -247,9 +247,9 @@ const Materials = ({
}) => {
return (
<>
<Title>
<TableItemHeader>
<FormattedMessage id="scheduleEventDetail.materials" />
</Title>
</TableItemHeader>
<Spacer size="small" />
<ul>
{materials.map((material) => (
Expand Down
7 changes: 0 additions & 7 deletions frontend/src/components/title/index.tsx

This file was deleted.

0 comments on commit 7bfc5c3

Please sign in to comment.