Skip to content

Commit

Permalink
chore: some minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
dahal committed May 31, 2024
1 parent 9672a05 commit 21427cf
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ const SharesPage = async () => {
return (
<EmptyState
icon={<RiPieChartFill />}
title="You do not have any shares yet."
subtitle="Please click the button for adding new shares."
title="You have not issued any shares"
subtitle="Please click the button below to start issuing shares."
>
<ShareModal
size="4xl"
Expand All @@ -43,23 +43,20 @@ const SharesPage = async () => {
<div className="gap-y-3">
<h3 className="font-medium">Shares</h3>
<p className="mt-1 text-sm text-muted-foreground">
Add shares for stakeholders
Issue shares to stakeholders
</p>
</div>
<div>
<ShareModal
title="Draft Shares"
subtitle={
<Tldr
message="Manage shares by adding them.
Add approval dates, notes, certificateId for the stakeholders. "
cta={{
label: "Learn more",
href: "https://opencap.co/help/stakeholder-shares",
}}
/>
size="4xl"
title="Create a share"
subtitle="Please fill in the details to create and issue a share."
trigger={
<Button>
<RiAddFill className="mr-2 h-5 w-5" />
Create a share
</Button>
}
trigger={<Button>Draft Shares</Button>}
/>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { CompanyForm } from "@/components/onboarding/company-form";
import { api } from "@/trpc/server";
import { type Metadata } from "next";
import type { Metadata } from "next";

export const metadata: Metadata = {
title: "Company",
Expand Down
1 change: 1 addition & 0 deletions src/components/onboarding/company-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export const CompanyForm = ({ type, data }: CompanyFormProps) => {
state: data?.company.state ?? "",
streetAddress: data?.company.streetAddress ?? "",
zipcode: data?.company.zipcode ?? "",
country: data?.company.country ?? "",
},
},
});
Expand Down
1 change: 1 addition & 0 deletions src/trpc/routers/company-router/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export const companyRouter = createTRPCRouter({
city: true,
zipcode: true,
streetAddress: true,
country: true,
logo: true,
},
},
Expand Down
9 changes: 6 additions & 3 deletions src/trpc/routers/onboarding-router/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,12 @@ export const ZodCompanyMutationSchema = z.object({
zipcode: z.string().min(1, {
message: "Zipcode is required",
}),
country: z.string().min(1, {
message: "Country is required",
}),
country: z
.string()
.min(1, {
message: "Country is required",
})
.default("US"),
logo: z.string().min(1).optional(),
}),
});
Expand Down

0 comments on commit 21427cf

Please sign in to comment.