This repository has been archived by the owner on Dec 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
115 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 5 additions & 7 deletions
12
packages/app/components/creator-channels/components/creator-badge.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,16 @@ | ||
import { View } from "@showtime-xyz/universal.view"; | ||
|
||
import { LeanText } from "./lean-text"; | ||
import { LeanText, LeanView } from "./lean-text"; | ||
|
||
export const CreatorBadge = () => { | ||
return ( | ||
<View tw="rounded-md bg-[#CE8903] px-2 py-1.5"> | ||
<View tw="flex-row items-center justify-center"> | ||
<LeanView tw="rounded-md bg-[#CE8903] px-2 py-1.5"> | ||
<LeanView tw="flex-row items-center justify-center"> | ||
<LeanText | ||
tw="text-xs font-medium text-white" | ||
style={{ lineHeight: 14 }} | ||
> | ||
Creator | ||
</LeanText> | ||
</View> | ||
</View> | ||
</LeanView> | ||
</LeanView> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 2 additions & 8 deletions
10
packages/app/components/creator-channels/components/lean-text.web.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,5 @@ | ||
import { Text } from "@showtime-xyz/universal.text"; | ||
import { View } from "@showtime-xyz/universal.view"; | ||
|
||
export const LeanText = Text; | ||
|
||
/* | ||
export const LeanText = ({ tw, ...rest }) => { | ||
const style = useMemo(() => (Array.isArray(tw) ? tw.join(" ") : tw), [tw]); | ||
return <BasicText tw={style} {...rest} />; | ||
}; | ||
*/ | ||
export const LeanView = View; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.