Skip to content

Commit 3657e86

Browse files
authored
docs(playground): minor clean up in the playground's tabs (#48)
1 parent a96309e commit 3657e86

File tree

3 files changed

+9
-14
lines changed

3 files changed

+9
-14
lines changed

playground/pages/tabs/tab1.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
<script setup lang="ts">
2-
import { add } from 'ionicons/icons'
3-
42
definePageMeta({
53
alias: ['/', '/tabs'],
64
})
@@ -9,7 +7,7 @@ definePageMeta({
97
<template>
108
<ion-page>
119
<ion-header translucent>
12-
<ion-toolbar class="toolbar">
10+
<ion-toolbar>
1311
<ion-thumbnail slot="start">
1412
<ion-img src="/icon.png" />
1513
</ion-thumbnail>

playground/pages/tabs/tab2.vue

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
22
import { actionSheetController } from '@ionic/vue'
3-
import { camera, trash, close } from 'ionicons/icons'
3+
import { UserPhoto } from '@/composables/usePhotoGallery'
44
const { photos, takePhoto, deletePhoto } = usePhotoGallery()
55
66
const showActionSheet = async (photo: UserPhoto) => {
@@ -10,14 +10,14 @@ const showActionSheet = async (photo: UserPhoto) => {
1010
{
1111
text: 'Delete',
1212
role: 'destructive',
13-
icon: trash,
13+
icon: ioniconsTrash,
1414
handler: () => {
1515
deletePhoto(photo)
1616
},
1717
},
1818
{
1919
text: 'Cancel',
20-
icon: close,
20+
icon: ioniconsClose,
2121
role: 'cancel',
2222
handler: () => {
2323
// Nothing to do, action sheet is automatically closed
@@ -44,18 +44,15 @@ const showActionSheet = async (photo: UserPhoto) => {
4444
</ion-header>
4545
<ion-grid>
4646
<ion-row>
47-
<ion-col size="6" :key="photo" v-for="photo in photos">
48-
<ion-img
49-
:src="photo.webviewPath"
50-
@click="showActionSheet(photo)"
51-
></ion-img>
47+
<ion-col size="6" :key="photo.filepath" v-for="photo in photos">
48+
<ion-img :src="photo.webviewPath" @click="showActionSheet(photo)"></ion-img>
5249
</ion-col>
5350
</ion-row>
5451
</ion-grid>
5552

5653
<ion-fab vertical="bottom" horizontal="center" slot="fixed">
5754
<ion-fab-button @click="takePhoto()">
58-
<ion-icon :icon="camera"></ion-icon>
55+
<ion-icon :icon="ioniconsCamera"></ion-icon>
5956
</ion-fab-button>
6057
</ion-fab>
6158
</ion-content>

playground/pages/tabs/tab4.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
<ion-page>
33
<ion-header>
44
<ion-toolbar>
5-
<ion-title>Tab 3</ion-title>
5+
<ion-title>Animation examples</ion-title>
66
</ion-toolbar>
77
</ion-header>
88
<ion-content :fullscreen="true">
99
<ion-header collapse="condense">
1010
<ion-toolbar>
11-
<ion-title size="large">Tab 3</ion-title>
11+
<ion-title size="large">Animation examples</ion-title>
1212
</ion-toolbar>
1313
</ion-header>
1414

0 commit comments

Comments
 (0)