Feature/react ojt project 3#3
Conversation
create ojt project 1
|
|
||
| url: Yup.string() | ||
| .matches( | ||
| /((https?):\/\/)?(www.)?[a-z0-9]+(\.[a-z]{2,}){1,3}(#?\/?[a-zA-Z0-9#]+)*\/?(\?[a-zA-Z0-9-_]+=[a-zA-Z0-9-%]+&?)?$/, |
There was a problem hiding this comment.
@Aung-Thu-Hein
ကိုယ်ရေးထားတဲ့ codeကို testing စစ်ပေးရင် ပိုကောင်းမယ်
| phoneNumber: Yup | ||
| .string() | ||
| .matches(/^\d+$/, 'Enter number only') | ||
| .min(11, ({ min }) => `Invalid phone number`) |
There was a problem hiding this comment.
@Aung-Thu-Hein
testing စစ်ပေးရန်
testing စစ်တဲ့အချိန်မှာ invalid number, valid number ထည့်ပီ စစ်ပေးရန်
| email: "", | ||
| url: "", | ||
| phoneNumber: "", | ||
| empty: true, |
There was a problem hiding this comment.
empty က ဘာအတွက်လိုအပ်တာလဲ
| </Form.Group> | ||
| <Form.Group className='form-field'> | ||
| <Label labelName="Phone Number" /> | ||
| <Stack> |
There was a problem hiding this comment.
[Question]
<Stack> က ဘာအတွက်သုံးတာလဲ
| </Stack> | ||
| </Form.Group> | ||
| <Form.Group className="form-field button-field"> | ||
| <Button buttonName="Cancle" /> |
There was a problem hiding this comment.
Cancle ကန်ကလီ :D
မှားနေကျ စကားလုံး
Cancelနှိပ်ရင် ဘာလုပ်ပေးမှာလဲ testingစစ်ပါ
| </Form.Group> | ||
| <Form.Group className="form-field button-field"> | ||
| <Button buttonName="Cancle" /> | ||
| <Button buttonName="Confirm" isDisabled={!isValid} /> |
There was a problem hiding this comment.
Confirmကို clickရင် လုပ်တဲ့ အလုပ်ကို testing စစ်ပါ
| import logo from './logo.svg'; | ||
| import React from 'react'; | ||
| import Header from './components/Header'; | ||
| import Content from './components/ThirdOjtContent'; |
There was a problem hiding this comment.
import တွေကို ..sorting စီပါ
| text-align: center; | ||
| font-size: 20px; | ||
| color: white; | ||
| background-color: rgb(138, 23, 71); |
There was a problem hiding this comment.
color မှာ white ကိုသုံးပီး
bg colorမှာ rgb နဲ့သုံးတယ် . .မျိုးစုံဖြစ်နေလို့ . .ကိုယ်သုံးမှာကို .. တမျိုးတည်းပုံသေသတ်မှတ်ရင်ပိုကောင်းမယ်
|
|
||
| name: Yup | ||
| .string() | ||
| .required("Name is required"), |
There was a problem hiding this comment.
msg တွေကို common ထုတ်ရေးကြည့်ပေးပါ
{attribute} is required လို ကြေငြာထားပီး ပြန်အစားထိုးတဲ့ပုံစံနဲ့ ရေးပါ
<< changes >>
add validation function