Skip to content

Commit 8a14f89

Browse files
authored
Merge pull request #21 from dctalbot/issue-15
fix persona layout
2 parents b1118fa + 9d98602 commit 8a14f89

File tree

5 files changed

+64
-4
lines changed

5 files changed

+64
-4
lines changed

eslint.config.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import eslint from "@eslint/js";
1414
import tseslint from "typescript-eslint";
1515
import reactRecommended from "eslint-plugin-react/configs/recommended.js";
16+
import reactHooks from "eslint-plugin-react-hooks";
1617
import globals from "globals";
1718

1819
const custom = {
@@ -69,4 +70,10 @@ const defaults = tseslint.config(
6970
...tseslint.configs.strict,
7071
);
7172

72-
export default defaults.concat(reactRecommended, custom, ignore, langOptions);
73+
export default defaults.concat(
74+
reactRecommended,
75+
reactHooks.configs.flat.recommended,
76+
custom,
77+
ignore,
78+
langOptions,
79+
);

package-lock.json

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

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
"babel-plugin-transform-remove-console": "^6.9.4",
4646
"eslint": "^9.35.0",
4747
"eslint-plugin-react": "7.37.5",
48+
"eslint-plugin-react-hooks": "^7.0.1",
4849
"prettier": "^3.6.2",
4950
"typescript": "~5.9.2",
5051
"typescript-eslint": "^8.43.0",

src/screens/persona/PersonaView.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,14 @@ export function PersonaView() {
8787
)}
8888
<>
8989
{showIDs.length > 0 && (
90-
<>
90+
<View style={{ flex: 1 }}>
9191
<AppListHeader text="Shows" />
9292
<ScrollView>
9393
{showIDs.map((id) => (
9494
<ShowPreview key={id} id={id} />
9595
))}
9696
</ScrollView>
97-
</>
97+
</View>
9898
)}
9999
</>
100100
</View>
@@ -105,5 +105,6 @@ const styles = StyleSheet.create({
105105
bio: {
106106
padding: spacing[12],
107107
maxHeight: 150,
108+
flexGrow: 0,
108109
},
109110
});

src/screens/spin/SpinView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function SpinView() {
2727
if (song) {
2828
nav.setOptions({ title: song });
2929
}
30-
}, [song]);
30+
}, [song, nav]);
3131

3232
const { isPending, error, data } = useSpin({ id });
3333

0 commit comments

Comments
 (0)