Skip to content

Commit

Permalink
fix(new submission button): making new submission button clickable
Browse files Browse the repository at this point in the history
  • Loading branch information
Adewale Sangobiyi committed Jan 2, 2024
1 parent dcaf573 commit f04ed8c
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions src/services/ui/src/pages/dashboard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,8 @@ import { Button } from "@/components/Inputs";
import { useUserContext } from "@/components/Context/userContext";
import { useMemo } from "react";

const buttonStyles = {
color: "#fff",
backgroundColor: "#0071bd",
display: "inline-block",
border: "none",
padding: "10px 20px",
borderRadius: "5px",
cursor: "pointer",
};
const buttonStyles =
"text-white bg-primary inline-block border-none px-10 py-2 rounded cursor-pointer";

const loader = (queryClient: QueryClient) => {
return async () => {
Expand Down Expand Up @@ -73,11 +66,7 @@ export const Dashboard = () => {
<div className="flex items-center justify-between my-4">
<h1 className="text-xl">Dashboard</h1>
{!userContext?.isCms && (
<Link
to={ROUTES.NEW_SUBMISSION_OPTIONS}
className="button-style"
style={buttonStyles}
>
<Link to={ROUTES.NEW_SUBMISSION_OPTIONS} className={buttonStyles}>
New Submission
</Link>
)}
Expand Down

0 comments on commit f04ed8c

Please sign in to comment.