Skip to content

Commit

Permalink
fix: update import paths to use '@/*'
Browse files Browse the repository at this point in the history
  • Loading branch information
trevor-anderson committed Feb 20, 2024
1 parent 3a3d72f commit 90dbb3a
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 15 deletions.
8 changes: 4 additions & 4 deletions src/pages/PrivacyPolicyPage/PersonalInfoCollectedTable.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { styled } from "@mui/material/styles";

export const PersonalInfoCollectedTable = () => (
<PrivacyPolicyTable>
<StyledTable>
<thead>
<tr>
<th>Category</th>
Expand Down Expand Up @@ -89,15 +89,15 @@ export const PersonalInfoCollectedTable = () => (
<td>NO</td>
</tr>
</tbody>
</PrivacyPolicyTable>
</StyledTable>
);

const PrivacyPolicyTable = styled("table")(({ theme }) => ({
const StyledTable = styled("table")(({ theme: { palette } }) => ({
borderCollapse: "collapse",

"& th,td": {
padding: "0.75rem",
border: `1px solid ${theme.palette.grey[700]}`,
border: `1px solid ${palette.grey[700]}`,
},

"& td:last-child": {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/PrivacyPolicyPage/PolicyAnchorTargets.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Anchor } from "@components/Navigation/Anchor";
import { Anchor } from "@/components/Navigation/Anchor";

const POLICY_ANCHOR_TARGET_CONFIGS = {
HEADERS: [
Expand Down
4 changes: 2 additions & 2 deletions src/pages/PrivacyPolicyPage/PolicySection.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Text from "@mui/material/Typography";
import { LegalPolicySection } from "@layouts/LegalPolicyPageLayout/LegalPolicySection";
import { LegalPolicySection } from "@/layouts/LegalPolicyPageLayout/LegalPolicySection";
import { POLICY_ANCHOR_TARGETS } from "./PolicyAnchorTargets";

/**
Expand All @@ -26,7 +26,7 @@ export const InShort = ({ summary }: InShortProps) => (
);

export type PolicySectionProps = {
header: keyof typeof POLICY_ANCHOR_TARGETS.HEADERS & string;
header: keyof typeof POLICY_ANCHOR_TARGETS.HEADERS;
summary?: string;
children: React.ReactNode; // section content
};
Expand Down
19 changes: 13 additions & 6 deletions src/pages/PrivacyPolicyPage/PrivacyPolicyPage.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import Text from "@mui/material/Typography";
import { Anchor } from "@components/Navigation/Anchor";
import { LegalPolicyPageLayout } from "@layouts/LegalPolicyPageLayout";
import { PolicyToC } from "@layouts/LegalPolicyPageLayout/PolicyToC";
import { Anchor } from "@/components/Navigation/Anchor";
import { LegalPolicyPageLayout } from "@/layouts/LegalPolicyPageLayout";
import { PolicyToC } from "@/layouts/LegalPolicyPageLayout/PolicyToC";
import { PersonalInfoCollectedTable } from "./PersonalInfoCollectedTable";
import { POLICY_ANCHOR_TARGETS } from "./PolicyAnchorTargets";
import { PolicySection, InShort } from "./PolicySection";

export const PrivacyPolicyPage = () => (
<LegalPolicyPageLayout pageTitle="Privacy Policy" lastUpdated="January 01, 2022">
<LegalPolicyPageLayout pageTitle="Privacy Policy" lastUpdated="January 19, 2024">
<Text>
This privacy notice for Nerdware, LLC ("Company," "we," "us," or "our"), describes how and why
we might collect, store, use, and/or share ("process") your information when you use our
Expand Down Expand Up @@ -141,8 +141,12 @@ export const PrivacyPolicyPage = () => (
<Text>
<b>Payment Data.</b> We may collect data necessary to process your payment if you make
purchases, such as your payment instrument number, and the security code associated with
your payment instrument. All payment data is stored by Stripe. You may find their privacy
notice link(s) here: <Anchor href="https://stripe.com/privacy" />.
your payment instrument. All payment data is stored by Stripe. We use Stripe for payment,
analytics, and other business services. Stripe collects and processes personal data,
including identifying information about the devices that connect to its services. Stripe
uses this information to operate and improve the services it provides to us, including for
fraud detection and prevention. You may find their privacy notice link(s) here:{" "}
<Anchor href="https://stripe.com/privacy" />.
</Text>
<Text>
<b>Social Media Login Data.</b> We may provide you with the option to register with us using
Expand Down Expand Up @@ -631,3 +635,6 @@ export const PrivacyPolicyPage = () => (
</PolicySection>
</LegalPolicyPageLayout>
);

// Exported as "Component" for react-router-dom lazy loading
export const Component = PrivacyPolicyPage;
4 changes: 2 additions & 2 deletions src/pages/PrivacyPolicyPage/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { PrivacyPolicyPage as default } from "./PrivacyPolicyPage";
// export as default to enable code-splitting via lazy import.
export { Component } from "./PrivacyPolicyPage";
// Exported as "Component" for react-router-dom lazy loading

0 comments on commit 90dbb3a

Please sign in to comment.