summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/auth/components/PersonalProfile.jsx2
-rw-r--r--src/lib/cart/components/Cart.jsx10
2 files changed, 7 insertions, 5 deletions
diff --git a/src/lib/auth/components/PersonalProfile.jsx b/src/lib/auth/components/PersonalProfile.jsx
index 46253ef1..0b387f2e 100644
--- a/src/lib/auth/components/PersonalProfile.jsx
+++ b/src/lib/auth/components/PersonalProfile.jsx
@@ -90,7 +90,7 @@ const PersonalProfile = () => {
<label>No. Handphone</label>
<input
{...register('mobile')}
- type='text'
+ type='tel'
className='form-input mt-3'
/>
</div>
diff --git a/src/lib/cart/components/Cart.jsx b/src/lib/cart/components/Cart.jsx
index af2bec78..d0408ddf 100644
--- a/src/lib/cart/components/Cart.jsx
+++ b/src/lib/cart/components/Cart.jsx
@@ -129,9 +129,11 @@ const Cart = () => {
)}
{!cart.isLoading && (!products || products?.length == 0) && (
- <Alert className='text-center my-2 mx-4' type='info'>
- Keranjang belanja anda masih kosong
- </Alert>
+ <div className='px-4'>
+ <Alert className='text-center my-2' type='info'>
+ Keranjang belanja anda masih kosong
+ </Alert>
+ </div>
)}
{products?.map((product) => (
@@ -154,7 +156,7 @@ const Cart = () => {
className='object-contain object-center border border-gray_r-6 h-40 w-full rounded-md'
/>
</Link>
- <div className='flex-1 px-2 text-caption-1'>
+ <div className='flex-1 px-2 text-caption-2'>
<Link
href={createSlug('/shop/product/', product?.parent.name, product?.parent.id)}
className='line-clamp-2 leading-6 !text-gray_r-12 font-normal'