Skip to content

Commit 23d2939

Browse files
committed
fixes
1 parent 2b6700e commit 23d2939

29 files changed

+173
-1390
lines changed

apps/dashboard/src/@/api/team.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,6 @@ export async function service_getTeamBySlug(slug: string) {
4848
return null;
4949
}
5050

51-
export function getTeamById(id: string) {
52-
return getTeamBySlug(id);
53-
}
54-
5551
export async function getTeams() {
5652
const token = await getAuthToken();
5753
if (!token) {
@@ -97,7 +93,7 @@ export async function getLastVisitedTeam() {
9793
const lastVisitedTeamId = cookiesStore.get(LAST_USED_TEAM_ID)?.value;
9894

9995
if (lastVisitedTeamId) {
100-
const team = await getTeamById(lastVisitedTeamId);
96+
const team = await getTeamBySlug(lastVisitedTeamId);
10197
if (team) {
10298
return team;
10399
}

apps/dashboard/src/@/components/chat/CustomChats.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,11 @@ export function CustomChats(props: {
141141
<>
142142
{/* Only show button/form if ticket not created */}
143143
{!props.showSupportForm && !supportTicketCreated && (
144-
<div className="mt-3 pt-3 border-t border-[#333333]">
144+
<div className="mt-3 pt-3 border-t border-border">
145145
<Button
146146
onClick={() => props.setShowSupportForm(true)}
147147
size="sm"
148-
className="bg-[#2663EB] hover:bg-[#2663EB]/80 text-white transition-opacity"
148+
className="bg-primary hover:bg-primary/80 text-primary-foreground transition-opacity"
149149
>
150150
Create Support Case
151151
<ArrowRightIcon className="w-4 h-4 ml-2" />
@@ -154,7 +154,7 @@ export function CustomChats(props: {
154154
)}
155155
{/* Show form if open and ticket not created */}
156156
{props.showSupportForm && !supportTicketCreated && (
157-
<div className="mt-4 pt-4 border-t border-[#333333]">
157+
<div className="mt-4 pt-4 border-t border-border">
158158
<SupportTicketForm
159159
team={props.team}
160160
productLabel={props.productLabel}
@@ -170,7 +170,7 @@ export function CustomChats(props: {
170170
)}
171171
{/* Show success message if ticket created */}
172172
{supportTicketCreated && (
173-
<div className="mt-4 pt-4 border-t border-[#333333]">
173+
<div className="mt-4 pt-4 border-t border-border">
174174
<div className="rounded-xl border bg-card px-4 py-2 text-green-500 leading-normal">
175175
Your support ticket has been created! Our team
176176
will get back to you soon.
@@ -187,7 +187,7 @@ export function CustomChats(props: {
187187
>
188188
<Button
189189
size="sm"
190-
className="bg-[#2663EB] hover:bg-[#2663EB]/80 text-white transition-opacity"
190+
className="bg-primary hover:bg-primary/80 text-primary-foreground transition-opacity"
191191
>
192192
Go to Support Portal
193193
</Button>

apps/dashboard/src/app/(app)/(dashboard)/support/create-ticket/components/contact-forms/account/index.tsx

Lines changed: 0 additions & 67 deletions
This file was deleted.

apps/dashboard/src/app/(app)/(dashboard)/support/create-ticket/components/contact-forms/connect/AffectedAreaInput.tsx

Lines changed: 0 additions & 64 deletions
This file was deleted.

apps/dashboard/src/app/(app)/(dashboard)/support/create-ticket/components/contact-forms/connect/index.tsx

Lines changed: 0 additions & 137 deletions
This file was deleted.

0 commit comments

Comments
 (0)