Skip to content

Commit

Permalink
fix: summary import
Browse files Browse the repository at this point in the history
  • Loading branch information
2nthony committed Mar 21, 2024
1 parent 6e2d095 commit 0ee9701
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import SummaryItems from "next-common/components/summary/summaryItems";
import Summary from "next-common/components/summary";
import ValueDisplay from "next-common/components/valueDisplay";
import { useChainSettings } from "next-common/context/chain";
import { toPercentage, toPrecision } from "next-common/utils";
Expand All @@ -12,7 +12,7 @@ export default function DemocracyDelegationCardSummary({
const { delegatorsCount, votes, participationRate } = delegate;

return (
<SummaryItems
<Summary
className={className}
items={[
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import SummaryItems from "next-common/components/summary/summaryItems";
import Summary from "next-common/components/summary";
import ValueDisplay from "next-common/components/valueDisplay";
import { useChainSettings } from "next-common/context/chain";
import { toPercentage, toPrecision } from "next-common/utils";
Expand All @@ -12,7 +12,7 @@ export default function ReferendaDelegationCardSummary({
const { delegatorsCount, trackAverageVotes, participationRate } = delegate;

return (
<SummaryItems
<Summary
className={className}
items={[
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { SecondaryCard } from "next-common/components/styled/containers/secondaryCard";
import SummaryItems from "next-common/components/summary/summaryItems";
import Summary from "next-common/components/summary";
import ValueDisplay from "next-common/components/valueDisplay";
import { useChainSettings } from "next-common/context/chain";
import { toPrecision } from "next-common/utils";

export default function Summary({ delegator, delegatee, capital }) {
export default function DelegationSummary({ delegator, delegatee, capital }) {
const { symbol, decimals } = useChainSettings();
return (
<SecondaryCard>
<SummaryItems
<Summary
items={[
{
title: "DELEGATE",
Expand Down

0 comments on commit 0ee9701

Please sign in to comment.