add edit server string i18n

set add/edit header title with i18n
fix albums plural in artist view
This commit is contained in:
austinried
2022-04-15 12:55:11 +09:00
parent 860a4cec16
commit a9dbcfb69d
5 changed files with 17 additions and 9 deletions

View File

@@ -117,7 +117,7 @@ const SearchTab = createTabStackNavigator(Search)
type SettingsStackParamList = {
main: undefined
server?: { id?: string }
server?: { id?: string; title?: string }
web: { uri: string; title?: string }
}
@@ -127,7 +127,9 @@ type ServerScreenProps = {
route: ServerScreenRouteProp
navigation: ServerScreenNavigationProp
}
const ServerScreen: React.FC<ServerScreenProps> = ({ route }) => <ServerView id={route.params?.id} />
const ServerScreen: React.FC<ServerScreenProps> = ({ route }) => (
<ServerView id={route.params?.id} title={route.params?.title} />
)
type WebScreenNavigationProp = NativeStackNavigationProp<SettingsStackParamList, 'web'>
type WebScreenRouteProp = RouteProp<SettingsStackParamList, 'web'>
@@ -149,7 +151,6 @@ const SettingsTab = () => {
name="server"
component={ServerScreen}
options={{
title: 'Edit Server',
headerStyle: styles.stackheaderStyle,
headerHideShadow: true,
headerTintColor: 'white',