removed test entries in the SettingsProfileView
This commit is contained in:
@@ -80,16 +80,6 @@ const ProfileSettings = ({ navigation }: { navigation: any }) => {
|
||||
maxWidth: 850,
|
||||
}}
|
||||
elements={[
|
||||
{
|
||||
type: "text",
|
||||
title: "Username",
|
||||
data: {
|
||||
text: user.name,
|
||||
onPress: () => {
|
||||
console.log("Go to username settings");
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
type: "text",
|
||||
title: "Email",
|
||||
@@ -110,6 +100,13 @@ const ProfileSettings = ({ navigation }: { navigation: any }) => {
|
||||
maxWidth: 850,
|
||||
}}
|
||||
elements={[
|
||||
{
|
||||
type: "text",
|
||||
title: "Username",
|
||||
data: {
|
||||
text: user.name,
|
||||
},
|
||||
},
|
||||
{
|
||||
type: "text",
|
||||
title: "ID",
|
||||
@@ -143,39 +140,6 @@ const ProfileSettings = ({ navigation }: { navigation: any }) => {
|
||||
text: user.data.createdAt,
|
||||
},
|
||||
},
|
||||
{
|
||||
type: "toggle",
|
||||
title: "Notifications",
|
||||
disabled: true,
|
||||
data: {
|
||||
value: toggle,
|
||||
onToggle: () => {
|
||||
console.log("toggle", toggle);
|
||||
setToggle(!toggle);
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
type: "dropdown",
|
||||
title: "Langue",
|
||||
data: {
|
||||
value: selectValue,
|
||||
options: [
|
||||
{
|
||||
label: "Français",
|
||||
value: "fr",
|
||||
},
|
||||
{
|
||||
label: "English",
|
||||
value: "en",
|
||||
},
|
||||
],
|
||||
onSelect: (value) => {
|
||||
console.log("select", value);
|
||||
setSelectValue(value);
|
||||
},
|
||||
},
|
||||
},
|
||||
]}
|
||||
/>
|
||||
</Column>
|
||||
|
||||
Reference in New Issue
Block a user