Skip to content

Commit

Permalink
Update PlaylistInfo.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
lovegaoshi authored Oct 16, 2023
1 parent 9a11fa2 commit 012cb5e
Showing 1 changed file with 4 additions and 23 deletions.
27 changes: 4 additions & 23 deletions src/components/playlist/PlaylistInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ export default ({
const searchBkgrdWidth = useRef(new Animated.Value(0)).current;
const searchBkgrdHeight = useRef(new Animated.Value(0)).current;
const [searchVisible, setSearchVisible] = useState(search);
// TODO: a more elegant way to signal content update
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const playlistInfoUpdate = useNoxSetting(state => state.playlistInfoUpdate);
const playlistSearchAutoFocus: boolean = useNoxSetting(
state => state.playlistSearchAutoFocus
);
Expand Down Expand Up @@ -155,27 +158,7 @@ export default ({
]).start(() => setSearchVisible(false));
}
}, [search]);

/**
* pull down menu:
<Animated.View
style={[
{
position: 'absolute',
backgroundColor: 'grey',
width: searchBkgrdWidth.interpolate({
inputRange: [0, 100],
outputRange: ['0%', '100%'],
}),
height: searchBkgrdHeight.interpolate({
inputRange: [0, 100],
outputRange: [50, 100],
}),
},
]}
></Animated.View>
*/


return (
<View style={styles.container}>
<Animated.View
Expand All @@ -199,7 +182,6 @@ export default ({
style={styles.textInput}
inputStyle={styles.searchInput}
ref={searchContainerRef}
// autoFocus={playlistSearchAutoFocus}
selectTextOnFocus
selectionColor={playerStyle.customColors.textInputSelectionColor}
icon={search ? 'format-list-checkbox' : () => undefined}
Expand Down Expand Up @@ -240,6 +222,5 @@ const styles = StyleSheet.create({
position: 'absolute',
paddingLeft: 15,
zIndex: -1,
// Add any additional styles for the Pressable component here
},
});

0 comments on commit 012cb5e

Please sign in to comment.