Skip to content

Commit

Permalink
fix baker import
Browse files Browse the repository at this point in the history
  • Loading branch information
lvndry committed Sep 26, 2023
1 parent acde06c commit ddbc903
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import React from "react";
import styled from "styled-components";
import { Baker } from "@ledgerhq/live-common/families/tezos/bakers";
import { Baker } from "@ledgerhq/live-common/families/tezos/types";
import Box from "~/renderer/components/Box";
import CustomValidator from "~/renderer/icons/CustomValidator";
import Image from "~/renderer/components/Image";

const Circle = styled(Box).attrs((props: { size: number }) => ({
style: {
width: props.size,
Expand All @@ -13,10 +14,12 @@ const Circle = styled(Box).attrs((props: { size: number }) => ({
border-radius: 50%;
overflow: hidden;
`;

type Props = {
size?: number;
baker: Baker | undefined | null;
};

const BakerImage = ({ size = 24, baker }: Props) => (
<Circle size={size}>
{baker ? (
Expand All @@ -26,4 +29,5 @@ const BakerImage = ({ size = 24, baker }: Props) => (
)}
</Circle>
);

export default BakerImage;

0 comments on commit ddbc903

Please sign in to comment.