Skip to content

Commit

Permalink
Fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
KrownWealth committed Jan 22, 2024
1 parent 5ff9779 commit eb57513
Show file tree
Hide file tree
Showing 8 changed files with 143 additions and 59 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,7 @@ import useBusiness from "./hooks/useBusiness"
import { Input } from "@cs/stories/Input"
import useProfilePhoto from "./hooks/useProfilePhoto"

interface BusinessDetailFormProps {
sidebarOpen: boolean
}

const BusinessDetailForm: React.FC<BusinessDetailFormProps> = ({
sidebarOpen,
}) => {
const BusinessDetailForm: React.FC = () => {
const { bizData, handleBizInputs, handleBusinessSubmit, errors } =
useBusiness()
const { uploading, selectedImage, handleFileChange, error } =
Expand Down Expand Up @@ -92,11 +86,7 @@ const BusinessDetailForm: React.FC<BusinessDetailFormProps> = ({
<div className={styles.error}>{errors.category}</div>
)}
</div>
<hr
className={`${
sidebarOpen ? styles.hrExpanded : styles.hrCollapsed
}`}
/>
<hr />
<div className="flex flex-col justify-between gap-4 pt-8">
<p>Business Address</p>
<Input
Expand All @@ -112,11 +102,11 @@ const BusinessDetailForm: React.FC<BusinessDetailFormProps> = ({
<div className={styles.error}>{errors.business_address}</div>
)}
</div>
<hr
{/* <hr
className={`${
sidebarOpen ? styles.hrExpanded : styles.hrCollapsed
sideBarOpenContainer ? styles.hrExpanded : styles.hrCollapsed
}`}
/>
/> */}
<div className="flex flex-col justify-between gap-4 pt-8">
<p>Custom Fields</p>
<Input
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ const ProfileLinks: React.FC<{ userId?: string }> = ({ userId = "" }) => {
<Link href={`/dashboard/marketplace_dashboard/${userId}/myaccountform`}>
My Account
</Link>
<Link href={`/dashboard/marketplace_dashboard/${userId}/myaccountform`}>
<Link href={`/dashboard/marketplace_dashboard/${userId}/mybusinessform`}>
My Business
</Link>
<Link href={`/dashboard/marketplace_dashboard/${userId}/myaccountform`}>
<Link href={`/dashboard/marketplace_dashboard/${userId}/mydocumentform`}>
My Document
</Link>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import React from "react"
import "@/styles/global.css"
import styles from "@/styles/marketplaceprofile.module.css"

interface HorizontalRuleProps {
sideBarOpenContainer: boolean
}

const HorizontalRule: React.FC<HorizontalRuleProps> = ({
sideBarOpenContainer,
}) => {
return (
<>
<hr
className={`${
sideBarOpenContainer ? styles.hrExpanded : styles.hrCollapsed
}`}
/>
</>
)
}

export default HorizontalRule
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ import "@/styles/global.css"
import MarketPlaceSideBar from "@/component/dashboard/MarketPlaceProfile/MarketplaceSidebar"
import TopHelpBar from "../../../component/dashboard/MarketPlaceProfile/TopHelpBar"
import CategoryInputField from "../../../component/dashboard/MarketPlaceProfile/CategoryInputField"
import ProfileLinks from "../../../component/dashboard/MarketPlaceProfile/ProfileIdLinks"
import ProfileLinks from "../../../component/dashboard/MarketPlaceProfile/ProfileLinks"
import styles from "@/styles/marketplaceprofile.module.css"
import HorizontalRule from "@/component/dashboard/MarketPlaceProfile/horizontalRule"

interface IdDashboardLayoutProps {
title: string
Expand All @@ -28,19 +29,11 @@ const IdDashboardLayout: React.FC<IdDashboardLayoutProps> = ({
<TopHelpBar />
<CategoryInputField />
<ProfileLinks />
<hr
className={`${
sideBarOpenContainer ? styles.hrExpanded : styles.hrCollapsed
}`}
/>
<HorizontalRule sideBarOpenContainer={sideBarOpenContainer} />
<div className={styles.accountTile}>
<p>{title}</p>
</div>
<hr
className={`${
sideBarOpenContainer ? styles.accountTileHr : styles.accountTileHr2
}`}
/>
<HorizontalRule sideBarOpenContainer={sideBarOpenContainer} />
<div className={styles.accountInfo}>{children}</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import PersonalDetailForm from "../../../component/dashboard/MarketPlaceProfile/

const MyAccountForm: React.FC = () => {
return (
<DashboardLayout title="Personal Information">
<DashboardLayout title="Personal Information" sideBarOpenContainer={true}>
<PersonalDetailForm />
</DashboardLayout>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,10 @@ import React from "react"
import DashboardLayout from "./layout"
import BusinessDetailForm from "../../../component/dashboard/MarketPlaceProfile/MyBusinessForm"

interface MyBusinessFormProps {
sidebarOpen: boolean
}

const MyBusinessForm: React.FC<MyBusinessFormProps> = ({ sidebarOpen }) => {
const MyBusinessForm: React.FC = () => {
return (
<DashboardLayout title="Business Information">
<BusinessDetailForm sidebarOpen={sidebarOpen} />
<DashboardLayout title="Business Information" sideBarOpenContainer={true}>
<BusinessDetailForm />
</DashboardLayout>
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import DocumentUploadForm from "../../../component/dashboard/MarketPlaceProfile/

const MyDocumentForm: React.FC = () => {
return (
<DashboardLayout title="Document Information">
<DashboardLayout title="Document Information" sideBarOpenContainer={true}>
<DocumentUploadForm />
</DashboardLayout>
)
Expand Down
126 changes: 104 additions & 22 deletions cubeseed_login/src/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,94 @@ li {

a {
text-decoration: none;
cursor: pointer;
}

/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
margin: 0;
padding: 0;
border: 0;
Expand All @@ -44,25 +113,38 @@ time, mark, audio, video {
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
display: block;
}

body {
line-height: 1;
}

ol, ul {
ol,
ul {
list-style: none;
}

blockquote, q {
blockquote,
q {
quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
blockquote:before,
blockquote:after,
q:before,
q:after {
content: "";
content: none;
}
Expand All @@ -83,15 +165,15 @@ a {
}

input {
border: 1px solid #45DFA9;
border: 1px solid #45dfa9;
border-radius: 6px;
position: relative;
width: 100%;
margin: 10px;
width: 100%;
margin: 10px;
line-height: 6ex;
outline: #45DFA9;
outline: #45dfa9;
}

label {
Expand All @@ -101,4 +183,4 @@ label {
left: 2em;
background-color: white;
padding: 0 5px;
}/*# sourceMappingURL=globals.css.map */
} /*# sourceMappingURL=globals.css.map */

0 comments on commit eb57513

Please sign in to comment.