Skip to content

Commit 4781b36

Browse files
authored
chores, tweaks bumps and cleanup (#1994)
1 parent b2b297b commit 4781b36

37 files changed

Lines changed: 156 additions & 161 deletions

.github/workflows/code-deploy-preview.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
- uses: actions/checkout@v4
13+
- uses: actions/checkout@v5
1414
- name: Use Bun
1515
uses: oven-sh/setup-bun@v2
1616
- name: Deploy

.github/workflows/code-deploy-production.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
name: production
2020
url: https://reactnative.directory
2121
steps:
22-
- uses: actions/checkout@v4
22+
- uses: actions/checkout@v5
2323
- name: Use Bun
2424
uses: oven-sh/setup-bun@v2
2525
- name: Deploy

.github/workflows/code-lint-and-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
test:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@v5
1515
- name: Use Bun
1616
uses: oven-sh/setup-bun@v2
1717
- name: Install dependencies

.github/workflows/data-test-and-validate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
test:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@v5
1515
- name: Use Bun
1616
uses: oven-sh/setup-bun@v2
1717
- name: Install dependencies

.github/workflows/vercel-cleanup-data-blobs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
build:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@v5
1515
- name: Use Bun
1616
uses: oven-sh/setup-bun@v2
1717
- name: Install dependencies

assets/logo.png

-5.49 KB
Loading

assets/notfound.png

-15.5 KB
Loading

assets/search.png

-16.5 KB
Loading

bun.lock

Lines changed: 28 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

common/styleguide.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ export const layout = {
1717
maxWidth: 1200,
1818
};
1919

20-
export const useLayout = () => {
20+
export function useLayout() {
2121
const { width } = useWindowDimensions();
2222
return {
2323
isSmallScreen: width < 800,
2424
isBelowMaxWidth: width < layout.maxWidth,
2525
};
26-
};
26+
}
2727

2828
export const colors = {
2929
primary: '#61DAFB',
@@ -93,8 +93,8 @@ type CustomTextProps = TextProps &
9393
numberOfLines?: number;
9494
}>;
9595

96-
const createTextComponent = (Element: ComponentType<TextProps>, textStyle?: TextStyles) => {
97-
const TextComponent = ({ children, style, id, numberOfLines }: CustomTextProps) => {
96+
function createTextComponent(Element: ComponentType<TextProps>, textStyle?: TextStyles) {
97+
function TextComponent({ children, style, id, numberOfLines }: CustomTextProps) {
9898
const { isDark } = useContext(CustomAppearanceContext);
9999

100100
const elementStyle = Element?.displayName
@@ -109,12 +109,12 @@ const createTextComponent = (Element: ComponentType<TextProps>, textStyle?: Text
109109
{children}
110110
</Element>
111111
);
112-
};
112+
}
113113

114114
TextComponent.displayName = `TextComponent(${Element.displayName ?? Element.name ?? 'Unknown'})`;
115115

116116
return TextComponent;
117-
};
117+
}
118118

119119
export const H1 = createTextComponent(HtmlElements.H1, textStyles.h1);
120120
export const H2 = createTextComponent(HtmlElements.H2, textStyles.h2);

0 commit comments

Comments
 (0)