diff --git a/.changeset/slow-crabs-whisper.md b/.changeset/slow-crabs-whisper.md new file mode 100644 index 0000000000..6f2cdfffa4 --- /dev/null +++ b/.changeset/slow-crabs-whisper.md @@ -0,0 +1,5 @@ +--- +'@penumbra-zone/ui': minor +--- + +Sync TextInput with the latest designs diff --git a/packages/ui/src/AddressView/index.tsx b/packages/ui/src/AddressView/index.tsx index 11ff36a919..cee4a4c07d 100644 --- a/packages/ui/src/AddressView/index.tsx +++ b/packages/ui/src/AddressView/index.tsx @@ -4,7 +4,8 @@ import { bech32mAddress } from '@penumbra-zone/bech32m/penumbra'; import { CopyToClipboardButton } from '../CopyToClipboardButton'; import { AddressIcon } from './AddressIcon'; import { Text } from '../Text'; -import { Density, useDensity } from '../utils/density'; +import { useDensity } from '../utils/density'; +import { Density } from '../Density'; export interface AddressViewProps { addressView: AddressView | undefined; @@ -13,16 +14,6 @@ export interface AddressViewProps { truncate?: boolean; } -export const getIconSize = (density: Density): number => { - if (density === 'compact') { - return 16; - } - if (density === 'slim') { - return 12; - } - return 24; -}; - // Renders an address or an address view. // If the view is given and is "visible", the account information will be displayed instead. export const AddressViewComponent = ({ @@ -54,31 +45,19 @@ export const AddressViewComponent = ({