Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: remove obsolete components #715

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions components/AgentsTableRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import { PersonWithFileEssential } from "lib/types/extensions";
import { useTranslation } from "next-i18next";
import Link from "next/link";
import BrDisplayUser from "./brickroom/BrDisplayUser";
import BrUserDisplay from "./brickroom/BrUserDisplay";

const AgentsTableRow = (props: { agent: Partial<PersonWithFileEssential> }) => {
const { agent: e } = props;
Expand All @@ -28,7 +28,7 @@ const AgentsTableRow = (props: { agent: Partial<PersonWithFileEssential> }) => {
return (
<tr>
<td>
<BrDisplayUser user={e} />
<BrUserDisplay userId={e.id} />
</td>
<td className="">
<Link href={`/profile/${e.id}`}>
Expand Down
4 changes: 2 additions & 2 deletions components/ContributionsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ import { QUERY_RESOURCE_PROPOSAlS } from "lib/QueryAndMutation";
import { ResourceProposalsQuery, ResourceProposalsQueryVariables } from "lib/types";
import { useTranslation } from "next-i18next";
import Link from "next/link";
import BrDisplayUser from "./brickroom/BrDisplayUser";
import BrTable from "./brickroom/BrTable";
import PTitleCounter from "./polaris/PTitleCounter";
import BrUserDisplay from "./brickroom/BrUserDisplay";

const ContributionsTable = ({ id, title }: { id: string; title?: string }) => {
const { t } = useTranslation("common");
Expand All @@ -41,7 +41,7 @@ const ContributionsTable = ({ id, title }: { id: string; title?: string }) => {
<tr className="cursor-pointer">
<td>
{/* @ts-ignore */}
<BrDisplayUser user={proposal.node.primaryIntents![0].provider!} />
<BrUserDisplay userId={proposal.node.primaryIntents![0].provider.id} />
</td>
<td>{proposal.node.note}</td>
<td>
Expand Down
139 changes: 0 additions & 139 deletions components/ProjectsTable.tsx

This file was deleted.

72 changes: 0 additions & 72 deletions components/ProjectsTableBase.tsx

This file was deleted.

88 changes: 0 additions & 88 deletions components/ProjectsTableRow.tsx

This file was deleted.

51 changes: 0 additions & 51 deletions components/brickroom/BrDisplayUser.tsx

This file was deleted.

Loading