Skip to content

Commit

Permalink
build: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Pear104 committed Jul 3, 2024
1 parent fa6e799 commit 7a4d277
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 21 deletions.
4 changes: 2 additions & 2 deletions frontend/src/pages/dashboard/warranty_card/CardManagement.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useEffect, useState } from "react";
import { useLocation, useNavigate } from "react-router-dom";
import { useNavigate } from "react-router-dom";
import { Form, Input, Pagination, Empty } from "antd";
import { useSearchStore } from "../../../store/searchStore";
import { GET } from "../../../utils/request";
Expand All @@ -9,7 +9,7 @@ import LoadingItem from "./components/LoadingItem";
import CardRow from "./components/CardRow";

export default function CardManagement() {
const location = useLocation();
// const location = useLocation();

// sort item
const columnHeaders = [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import { useQueries } from "@tanstack/react-query";
import { GET } from "../../../../utils/request";

export default function WarrantyRow({ card }: { card: any }) {
return (
<>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/home/components/Explore.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Carousel } from "antd";
import { featuredProduct } from "./featuredProduct";
import { useState, useEffect } from "react";
// import { useState, useEffect } from "react";

const ProductItem = ({ url, title }: { url: string; title: string }) => {
return (
Expand Down
56 changes: 42 additions & 14 deletions frontend/src/pages/policies/Policies.tsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,32 @@
import { Phone } from "lucide-react";
// import { Phone } from "lucide-react";

const Policies = () => {
return (
<div className="m-9 p-2 text-xl mx-36 sm:px-1 sm:m-2">
<h1 className="text-center text-5xl m-2 font-serif text-blue-950 "> Privacy Policy </h1>
<h1 className="text-center text-5xl m-2 font-serif text-blue-950 ">
{" "}
Privacy Policy{" "}
</h1>
<div className="m-2 text-xl mb-5 font-light">
Thank you for visiting datj.id.vn. At DATJ Company, we respect your
privacy and protect your personal information. Please carefully review
our privacy policies. By visiting and using datj.id.vn, you agree
with the policies described below. By agreeing, you provide DATJ Company
our privacy policies. By visiting and using datj.id.vn, you agree with
the policies described below. By agreeing, you provide DATJ Company
consent to collect, use, store and disclose your information. Please
feel free to contact a service representative for more information
regarding our Privacy Policy at{" "}
<a className="underline" href="mailto:[email protected]">[email protected]</a> or <a className="underline" href="tel:0123456789">0123456789</a>.
<a className="underline" href="mailto:[email protected]">
[email protected]
</a>{" "}
or{" "}
<a className="underline" href="tel:0123456789">
0123456789
</a>
.
</div>
<h2 className="text-2xl font-serif text-blue-950 underline m-2 mb-3">Information Collection and Use of Information</h2>
<h2 className="text-2xl font-serif text-blue-950 underline m-2 mb-3">
Information Collection and Use of Information
</h2>
<div className="m-2 text-xl mb-5 font-light">
We collect and securely store any information you submit on any of our
websites, or to DATJ Company via email, telephone, fax, postal mail,
Expand Down Expand Up @@ -68,13 +80,17 @@ const Policies = () => {
<li className="mb-2">Facilitation of purchases and services</li>
<li className="mb-2">Order confirmation and tracking</li>
<li className="mb-2">Inquiries and responses</li>
<li className="mb-2">Checking accuracy and verification of information</li>
<li className="mb-2">
Checking accuracy and verification of information
</li>
<li className="mb-2">Detection and prevention of fraud</li>
<li className="mb-2">
Site and service improvements, product offerings, marketing and
promotional efforts, and overall customer experience
</li>
<li className="mb-2">Understanding products and services preferences</li>
<li className="mb-2">
Understanding products and services preferences
</li>
<li className="mb-2">
Understanding our customer demographics, preferences, interests, and
behaviors
Expand Down Expand Up @@ -142,7 +158,9 @@ const Policies = () => {
communications from DATJ Company, please contact us.
</div>

<h2 className="text-2xl font-serif text-blue-950 underline m-2 mb-3">Disclosure of Personal and Other Information</h2>
<h2 className="text-2xl font-serif text-blue-950 underline m-2 mb-3">
Disclosure of Personal and Other Information
</h2>
<div className="text-xl mb-5 m-2 font-light">
DATJ Company works with trusted and secure third parties. There may be
instances where we feel it is appropriate to share personal or other
Expand Down Expand Up @@ -189,7 +207,9 @@ const Policies = () => {
with you.
</div>

<h2 className="text-2xl font-serif text-blue-950 underline m-2 mb-3">Choices & Opt-Out</h2>
<h2 className="text-2xl font-serif text-blue-950 underline m-2 mb-3">
Choices & Opt-Out
</h2>
<div className="text-xl mb-5 m-2 font-light">
We respect your privacy and understand if you wish to opt-out of
communications from DATJ Company. To opt-out, you can select
Expand Down Expand Up @@ -243,22 +263,28 @@ const Policies = () => {
.
</div>

<h2 className="text-2xl font-serif text-blue-950 underline m-2 mb-3">Security</h2>
<h2 className="text-2xl font-serif text-blue-950 underline m-2 mb-3">
Security
</h2>
<div className="text-xl mb-5 m-2 font-light">
DATJ Company takes reasonable steps to protect the Personal Data
provided via the website from loss, misuse, and unauthorized access,
disclosure, alteration, or destruction. DATJ Company maintains policies
and procedures to maintain and protect customer and visitor information.
</div>

<h2 className="text-2xl font-serif text-blue-950 underline m-2 mb-3">Updating Information</h2>
<h2 className="text-2xl font-serif text-blue-950 underline m-2 mb-3">
Updating Information
</h2>
<div className="text-xl mb-5 m-2 font-light">
If you would like to update or alter personal information you have
provided DATJ Company, simply make changes on your My Account page or by
calling or emailing DATJ Company directly.
</div>

<h2 className="text-2xl font-serif text-blue-950 underline m-2 mb-3">Children’s Privacy</h2>
<h2 className="text-2xl font-serif text-blue-950 underline m-2 mb-3">
Children’s Privacy
</h2>
<div className="text-xl mb-5 m-2 font-light">
DATJ Company does not knowingly collect information from individuals
under the age of 16. We request that individuals under the age of 16 not
Expand All @@ -269,7 +295,9 @@ const Policies = () => {
requests to have such personal information removed.
</div>

<h2 className="text-2xl font-serif text-blue-950 underline m-2 mb-3">Links</h2>
<h2 className="text-2xl font-serif text-blue-950 underline m-2 mb-3">
Links
</h2>
<div className="text-xl mb-5 m-2 font-light">
Our website may provide links to other third-party websites which are
outside our control and not covered by this privacy policy. We encourage
Expand Down
1 change: 0 additions & 1 deletion frontend/src/pages/product/diamond/DiamondDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { useEffect, useState } from "react";
export default function DiamondDetail() {
const { diamondId } = useParams();
const [loadingCertificate, setLoadingCertificate] = useState(false);
const [certificate, setCertificate] = useState("");

const [diamond, diamondPrice, priceRate] = useQueries({
queries: [
Expand Down

0 comments on commit 7a4d277

Please sign in to comment.