Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Contact Us page #108

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions com-dict-client/src/components/AddWord/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,11 @@ import { addWord, addHeadTerm } from "../../store/actions";
import { useSelector } from "react-redux";

import { languages } from "../../constants";
import { categories } from "../../constants";
import { toTitleCase } from "../../utils.js/toTitleCase";



const { Text } = Typography;
// var optionText;

Expand Down Expand Up @@ -59,7 +62,7 @@ function WordForm() {
user_id: user.uid,
uname: user.displayName,
createdAt: new Date().getTime(),
alphabatical: headTerm[0].toUpperCase(),
// alphabatical: headTerm[0].toUpperCase(),
word_of_the_day: null,
pronunciation: null,
trending_factor: 0,
Expand All @@ -68,7 +71,7 @@ function WordForm() {
return addWord(data)(firestore);
};

const categories = useSelector((state) => state.firestore.ordered.categories);
// const categories = useSelector((state) => state.firestore.ordered.categories);

const headTerms = useSelector((state) => state.firestore.ordered.headTerms);

Expand Down Expand Up @@ -219,16 +222,19 @@ function WordForm() {
/>
</Form.Item>

<Form.Item name="category">
<Form.Item
name="category"
//rules={[{ required: true, message: "" }]}
>
<Select
showSearch
placeholder="Select the category"
onChange={(val) => setCategory(val)}
>
{categories &&
categories.map((ct, i) => (
<Select.Option value={ct.category}>
{ct.category}
categories.map((ct,j) => (
<Select.Option value={ct}>
{ct}
</Select.Option>
))}
</Select>
Expand Down
245 changes: 245 additions & 0 deletions com-dict-client/src/components/ContactUS/index.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions com-dict-client/src/components/Footer/FooterPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ function Footer() {
<PhoneOutlined />
</Col>
<Col span={22}>
<Link to="#" className="link">
<Link to="/contact" className="link">
+94 XXXXXXXXX
</Link>
</Col>
Expand All @@ -125,7 +125,7 @@ function Footer() {
<MailOutlined />
</Col>
<Col span={22}>
<Link to="#" className="link">
<Link to="/contact" className="link">
XXXXXXXX@gmail.com
</Link>
</Col>
Expand All @@ -135,7 +135,7 @@ function Footer() {
<EnvironmentOutlined />
</Col>
<Col span={22}>
<Link to="#" className="link">
<Link to="/contact" className="link">
Location
</Link>
</Col>
Expand Down
7 changes: 4 additions & 3 deletions com-dict-client/src/components/Footer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from "react";
import { Row , Col} from 'antd';
import {Link} from 'react-router-dom';
import { Typography } from 'antd';
import contactUs from '../../containers/contactUs/contactUs'
import {InfoCircleOutlined, LockOutlined, FileTextOutlined, BugOutlined,
GithubOutlined, ExclamationCircleOutlined, PhoneOutlined,
UnorderedListOutlined,MailOutlined, EnvironmentOutlined}
Expand Down Expand Up @@ -106,7 +107,7 @@ function Footer() {
<PhoneOutlined />
</Col>
<Col span={22}>
<Link to="#" className="link">
<Link to="/contact" className="link">
+94 XXXXXXXXX</Link>
</Col>
</Row>
Expand All @@ -115,7 +116,7 @@ function Footer() {
<MailOutlined />
</Col>
<Col span={22}>
<Link to="#" className="link">
<Link to="/contact" className="link">
XXXXXXXX@gmail.com</Link>
</Col>
</Row>
Expand All @@ -124,7 +125,7 @@ function Footer() {
<EnvironmentOutlined />
</Col>
<Col span={22}>
<Link to="#" className="link">
<Link to="/contact" className="link">
Location</Link>
</Col>
</Row>
Expand Down
9 changes: 9 additions & 0 deletions com-dict-client/src/constants/categories.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export const categories = [
"Food",
"College",
"Religion",
"Work",
"Sports",
"Internet",
"Music",
];
1 change: 1 addition & 0 deletions com-dict-client/src/constants/index.js
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export { languages } from "./languages";
export { categories } from "./categories";
Loading