Skip to content

Commit

Permalink
feat: add color and menu button for toolbar in profile page
Browse files Browse the repository at this point in the history
  • Loading branch information
Ade Kiswara committed Nov 15, 2021
1 parent 7a92437 commit 4b4d2fe
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 3 deletions.
42 changes: 42 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/pages/main/profile/EditProfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const EditProfile: React.FC = () => {
return (
<IonPage>
<IonHeader>
<IonToolbar>
<IonToolbar color="danger">
<IonTitle>Edit Profil</IonTitle>
<IonButtons slot="start">
<IonBackButton defaultHref="/"/>
Expand Down
7 changes: 5 additions & 2 deletions src/pages/main/profile/Profile.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
import { IonAvatar, IonButton, IonCol, IonContent, IonGrid, IonHeader, IonInput, IonItem, IonLabel, IonList, IonPage, IonRow, IonTitle, IonToolbar } from '@ionic/react';
import { IonAvatar, IonButton, IonButtons, IonCol, IonContent, IonGrid, IonHeader, IonInput, IonItem, IonLabel, IonList, IonMenuButton, IonPage, IonRow, IonTitle, IonToolbar } from '@ionic/react';

const Profile: React.FC = () => {
return (
<IonPage>
<IonHeader>
<IonToolbar>
<IonToolbar color="danger">
<IonTitle slot="start">Profil Saya</IonTitle>
<IonButtons slot="start">
<IonMenuButton />
</IonButtons>
</IonToolbar>
</IonHeader>

Expand Down

0 comments on commit 4b4d2fe

Please sign in to comment.