mirror of
https://github.com/balzack/databag.git
synced 2025-02-11 19:19:16 +00:00
updating dark lang for sharing list
This commit is contained in:
parent
a576c535e7
commit
62c48e6a8a
@ -200,6 +200,8 @@ const Strings = [
|
|||||||
deleteMessage: 'Delete Message',
|
deleteMessage: 'Delete Message',
|
||||||
blockMessage: 'Block Message',
|
blockMessage: 'Block Message',
|
||||||
reportMessage: 'Report Message',
|
reportMessage: 'Report Message',
|
||||||
|
select: 'Select',
|
||||||
|
selectTopic: 'Select Topic for Sharing',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
languageCode: 'fr',
|
languageCode: 'fr',
|
||||||
@ -396,6 +398,8 @@ const Strings = [
|
|||||||
deleteMessage: 'Supprimer le Message',
|
deleteMessage: 'Supprimer le Message',
|
||||||
blockMessage: 'Bloquer le Message',
|
blockMessage: 'Bloquer le Message',
|
||||||
reportMessage: 'Signaler le Message',
|
reportMessage: 'Signaler le Message',
|
||||||
|
select: 'Choisir',
|
||||||
|
selectTopic: 'Choisissez le sujet à partager',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
languageCode: 'es',
|
languageCode: 'es',
|
||||||
@ -592,6 +596,9 @@ const Strings = [
|
|||||||
deleteMessage: 'Borrar Mensaje',
|
deleteMessage: 'Borrar Mensaje',
|
||||||
blockMessage: 'Bloquear Mensaje',
|
blockMessage: 'Bloquear Mensaje',
|
||||||
reportMessage: 'Reportar Mensaje',
|
reportMessage: 'Reportar Mensaje',
|
||||||
|
|
||||||
|
select: 'Elegir',
|
||||||
|
selectTopic: 'Elija un tema para compartir',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
languageCode: 'de',
|
languageCode: 'de',
|
||||||
@ -788,6 +795,9 @@ const Strings = [
|
|||||||
deleteMessage: 'Nachricht Löschen',
|
deleteMessage: 'Nachricht Löschen',
|
||||||
blockMessage: 'Blockieren Sie die Nachricht',
|
blockMessage: 'Blockieren Sie die Nachricht',
|
||||||
reportMessage: 'Melden Sie die Nachricht',
|
reportMessage: 'Melden Sie die Nachricht',
|
||||||
|
|
||||||
|
select: 'Wählen',
|
||||||
|
selectTopic: 'Wählen Sie ein Thema zum Teilen aus',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
languageCode: 'pt',
|
languageCode: 'pt',
|
||||||
@ -969,6 +979,9 @@ const Strings = [
|
|||||||
deleteMessage: 'Apagar Mensagem',
|
deleteMessage: 'Apagar Mensagem',
|
||||||
blockMessage: 'Bloquear Mensagem',
|
blockMessage: 'Bloquear Mensagem',
|
||||||
reportMessage: 'Denunciar Mensagem',
|
reportMessage: 'Denunciar Mensagem',
|
||||||
|
|
||||||
|
select: 'Escolher',
|
||||||
|
selectTopic: 'Escolha o tópico para compartilhar',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
languageCode: 'ru',
|
languageCode: 'ru',
|
||||||
@ -1148,6 +1161,9 @@ const Strings = [
|
|||||||
deleteMessage: 'Удаленное сообщение',
|
deleteMessage: 'Удаленное сообщение',
|
||||||
blockMessage: 'Заблокировать сообщение',
|
blockMessage: 'Заблокировать сообщение',
|
||||||
reportMessage: 'Пожаловаться на сообщение',
|
reportMessage: 'Пожаловаться на сообщение',
|
||||||
|
|
||||||
|
select: 'выбирать',
|
||||||
|
selectTopic: 'Выберите тему для обмена',
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -3,9 +3,11 @@ import { TouchableOpacity, Text, View, FlatList } from 'react-native';
|
|||||||
import { useSharing } from './useSharing.hook';
|
import { useSharing } from './useSharing.hook';
|
||||||
import { styles } from './Sharing.styled';
|
import { styles } from './Sharing.styled';
|
||||||
import { SharingItem } from './sharingItem/SharingItem';
|
import { SharingItem } from './sharingItem/SharingItem';
|
||||||
|
import { getLanguageStrings } from 'constants/Strings';
|
||||||
|
|
||||||
export function Sharing({ select, cancel }) {
|
export function Sharing({ select, cancel }) {
|
||||||
|
|
||||||
|
const strings = getLanguageStrings();
|
||||||
const [selection, setSelection] = useState(null);
|
const [selection, setSelection] = useState(null);
|
||||||
const { state, actions } = useSharing();
|
const { state, actions } = useSharing();
|
||||||
|
|
||||||
@ -13,7 +15,7 @@ export function Sharing({ select, cancel }) {
|
|||||||
<View style={styles.sharingBase}>
|
<View style={styles.sharingBase}>
|
||||||
<View style={styles.sharingFrame}>
|
<View style={styles.sharingFrame}>
|
||||||
<View style={styles.header}>
|
<View style={styles.header}>
|
||||||
<Text style={styles.headerText}>Select Topic for Sharing</Text>
|
<Text style={styles.headerText}>{ strings.selectTopic }</Text>
|
||||||
</View>
|
</View>
|
||||||
<FlatList
|
<FlatList
|
||||||
style={styles.content}
|
style={styles.content}
|
||||||
@ -23,19 +25,19 @@ export function Sharing({ select, cancel }) {
|
|||||||
keyExtractor={item => (`${item.cardId}:${item.channelId}`)}
|
keyExtractor={item => (`${item.cardId}:${item.channelId}`)}
|
||||||
/>
|
/>
|
||||||
<View style={styles.controls}>
|
<View style={styles.controls}>
|
||||||
|
<TouchableOpacity style={styles.cancel} onPress={cancel}>
|
||||||
|
<Text style={styles.cancelText}>{ strings.cancel }</Text>
|
||||||
|
</TouchableOpacity>
|
||||||
{ !selection && (
|
{ !selection && (
|
||||||
<View style={styles.disabled}>
|
<View style={styles.disabled}>
|
||||||
<Text style={styles.disabledText}>Select</Text>
|
<Text style={styles.disabledText}>{ strings.select }</Text>
|
||||||
</View>
|
</View>
|
||||||
)}
|
)}
|
||||||
{ selection && (
|
{ selection && (
|
||||||
<TouchableOpacity style={styles.select} onPress={() => select(selection)}>
|
<TouchableOpacity style={styles.select} onPress={() => select(selection)}>
|
||||||
<Text style={styles.selectText}>Select</Text>
|
<Text style={styles.selectText}>{ strings.select }</Text>
|
||||||
</TouchableOpacity>
|
</TouchableOpacity>
|
||||||
)}
|
)}
|
||||||
<TouchableOpacity style={styles.cancel} onPress={cancel}>
|
|
||||||
<Text style={styles.cancelText}>Cancel</Text>
|
|
||||||
</TouchableOpacity>
|
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
|
@ -8,10 +8,10 @@ export const styles = StyleSheet.create({
|
|||||||
height: '100%',
|
height: '100%',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
backgroundColor: 'rgba(52, 52, 52, 0.8)'
|
backgroundColor: 'rgba(0,0,0, 0.8)'
|
||||||
},
|
},
|
||||||
sharingFrame: {
|
sharingFrame: {
|
||||||
backgroundColor: Colors.formBackground,
|
backgroundColor: Colors.drawerBase,
|
||||||
width: '80%',
|
width: '80%',
|
||||||
height: '80%',
|
height: '80%',
|
||||||
maxWidth: 400,
|
maxWidth: 400,
|
||||||
@ -29,6 +29,7 @@ export const styles = StyleSheet.create({
|
|||||||
},
|
},
|
||||||
headerText: {
|
headerText: {
|
||||||
fontSize: 18,
|
fontSize: 18,
|
||||||
|
color: Colors.text,
|
||||||
},
|
},
|
||||||
content: {
|
content: {
|
||||||
width: '100%',
|
width: '100%',
|
||||||
|
@ -23,7 +23,7 @@ export const styles = StyleSheet.create({
|
|||||||
borderColor: Colors.itemDivider,
|
borderColor: Colors.itemDivider,
|
||||||
paddingLeft: 16,
|
paddingLeft: 16,
|
||||||
paddingRight: 16,
|
paddingRight: 16,
|
||||||
backgroundColor: Colors.background,
|
backgroundColor: Colors.areaBase,
|
||||||
},
|
},
|
||||||
detail: {
|
detail: {
|
||||||
paddingLeft: 12,
|
paddingLeft: 12,
|
||||||
@ -45,7 +45,7 @@ export const styles = StyleSheet.create({
|
|||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
},
|
},
|
||||||
message: {
|
message: {
|
||||||
color: Colors.lightText,
|
color: Colors.descriptionText,
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user