@yahoo/uds 2.4.1 → 2.4.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,14 @@
1
+ import { Button, cx, HStack, Text } from '@yahoo/uds';
2
+ const textClassName = cx('text-primary');
3
+ const otherProps = { height: 'fit' };
4
+
5
+ export const PageA = () => {
6
+ return (
7
+ <HStack className="w-full max-h-screen">
8
+ <Button className="min-w-full">Click me</Button>
9
+ {/* 🙏 TODO: Add w-10/12 to your className attribute */}
10
+ <Text className={textClassName}>Some text</Text>
11
+ <Text {...otherProps}>Some text</Text>
12
+ </HStack>
13
+ );
14
+ }
Binary file
Binary file
Binary file
package/cli/utils/auth.ts CHANGED
@@ -51,7 +51,7 @@ function isYahooEmployee(user?: User) {
51
51
  */
52
52
  async function authenticateUser(): Promise<User> {
53
53
  // Fetch firebase user data from the configurator.
54
- const email = await getGitEmail('local');
54
+ const email = await getGitEmail();
55
55
  const resp = await Bun.fetch(`https://config.uds.build/api/cli-analytics?email=${email}`);
56
56
  if (resp.status !== 200) {
57
57
  throw new Error(`Failed to fetch firebase user data from endpoint. Status ${resp.status}`);