Skip to content

Commit 2f68e39

Browse files
committed
Remove deprecated sizePhone and sizeTablet on <Text>
1 parent 7be4b1f commit 2f68e39

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@near-pagoda/ui",
3-
"version": "2.0.9",
3+
"version": "2.0.10",
44
"description": "A React component library that implements the official NEAR design system.",
55
"license": "MIT",
66
"repository": {

src/components/Banner/Banner.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export const Banner = ({ actions, bannerId, message }: Props) => {
6060

6161
return (
6262
<div className={s.banner} ref={ref}>
63-
<Text weight="500" sizePhone="text-xs">
63+
<Text weight="500" size="text-s">
6464
{message}
6565
</Text>
6666

src/components/CookiePrompt/CookiePrompt.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const CookiePrompt = ({ cookiePolicyUrl = '/cookies' }: Props) => {
1616

1717
return (
1818
<div className={s.cookiePrompt}>
19-
<Text size="text-s" sizePhone="text-xs">
19+
<Text size="text-s">
2020
We use our own and third-party cookies on our website to enhance your experience, analyze traffic, and for
2121
marketing. For more information see our&nbsp;
2222
<Link target="_blank" href={cookiePolicyUrl}>

src/components/Text.tsx

-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ type Props = Omit<ComponentPropsWithRef<'p'>, 'color'> & {
2929
href?: string;
3030
target?: ComponentProps<'a'>['target'];
3131
size?: ThemeFontSize;
32-
sizePhone?: ThemeFontSize;
33-
sizeTablet?: ThemeFontSize;
3432
noWrap?: boolean;
3533
weight?: string | number;
3634
uppercase?: boolean;

0 commit comments

Comments
 (0)