소스 검색

Fix texts and GET data url for admin

Tatiana Inama 6 년 전
부모
커밋
98d866b474
3개의 변경된 파일5개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 1
      src/Admin.tsx
  2. 1 1
      src/App.tsx
  3. 2 2
      src/PersonalInformation.tsx

+ 2 - 1
src/Admin.tsx

@@ -132,7 +132,8 @@ class Admin extends React.Component<{}, AdminState> {
     const canvas = new PaperScope();
     canvas.setup('vom-admin-canvas');
     canvas.view.viewSize.height = canvas.view.size.width * 1.25;
-    Axios.get<Result[]>('https://voicesofmerseyside.inama.dev/backend/').then(response => {
+    Axios.get<Result[]>('/backend/').then(response => {
+    // Axios.get<Result[]>('http://127.0.0.1/backend/').then(response => {
       const _data = response.data.map((result, index) => {
         return {
           ...result,

+ 1 - 1
src/App.tsx

@@ -21,7 +21,7 @@ const Introduction: React.FunctionComponent<SectionComponentProps> = ({ changePa
       <h4>Online Mapping</h4>
       <p>
         A speaker’s accent or dialect is closely tied to their sense of identity and community. Using a
-        purposefully designed online tool and Geofencing technology, we hope to gain valuable insights into
+        purposefully designed online tool and geofencing technology, we hope to gain valuable insights into
         the linguistic landscape of Merseyside and contribute to the wider field of perceptual dialectology.
         To gather data, residents of Merseyside are asked to draw a digital map of where they believe
         different accents or dialects in Merseyside to be found. Then, residents will be asked to label the

+ 2 - 2
src/PersonalInformation.tsx

@@ -223,8 +223,8 @@ export const PersonalInformation: React.FunctionComponent<PersonalInformationPro
         </FormGroup>
 
         <FormGroup>
-          <Label for="post-code">Current place of residence</Label>
-          <Input id="post-code" type="text" value={values.currentPlace} onChange={handleSelect('currentPlace')} { ...setInputValidation('currentPlace') } placeholder="(postcode area, e.g: CH48)"/>
+          <Label for="post-code">Current place of residence (please provide area code)</Label>
+          <Input id="post-code" type="text" value={values.currentPlace} onChange={handleSelect('currentPlace')} { ...setInputValidation('currentPlace') } placeholder="(e.g: CH48)"/>
           <FormFeedback>Please, fill up this input</FormFeedback>
         </FormGroup>