Skip to content

Commit

Permalink
Remove deprecated sizePhone and sizeTablet on <Text>
Browse files Browse the repository at this point in the history
  • Loading branch information
calebjacob committed Nov 12, 2024
1 parent 7be4b1f commit 2f68e39
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@near-pagoda/ui",
"version": "2.0.9",
"version": "2.0.10",
"description": "A React component library that implements the official NEAR design system.",
"license": "MIT",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Banner/Banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const Banner = ({ actions, bannerId, message }: Props) => {

return (
<div className={s.banner} ref={ref}>
<Text weight="500" sizePhone="text-xs">
<Text weight="500" size="text-s">
{message}
</Text>

Expand Down
2 changes: 1 addition & 1 deletion src/components/CookiePrompt/CookiePrompt.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const CookiePrompt = ({ cookiePolicyUrl = '/cookies' }: Props) => {

return (
<div className={s.cookiePrompt}>
<Text size="text-s" sizePhone="text-xs">
<Text size="text-s">
We use our own and third-party cookies on our website to enhance your experience, analyze traffic, and for
marketing. For more information see our&nbsp;
<Link target="_blank" href={cookiePolicyUrl}>
Expand Down
2 changes: 0 additions & 2 deletions src/components/Text.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ type Props = Omit<ComponentPropsWithRef<'p'>, 'color'> & {
href?: string;
target?: ComponentProps<'a'>['target'];
size?: ThemeFontSize;
sizePhone?: ThemeFontSize;
sizeTablet?: ThemeFontSize;
noWrap?: boolean;
weight?: string | number;
uppercase?: boolean;
Expand Down

0 comments on commit 2f68e39

Please sign in to comment.