forked from github/plane
fix: edit project button redirection (#2564)
* fix: redirect to project settings * fix: 404 page button alignment
This commit is contained in:
parent
8b7b5c54b9
commit
1c2ea6da5e
@ -186,7 +186,12 @@ export const ProjectCard: React.FC<ProjectCardProps> = observer((props) => {
|
||||
{(isOwner || isMember) && (
|
||||
<button
|
||||
className="flex items-center justify-center p-1 text-custom-text-400 hover:bg-custom-background-80 hover:text-custom-text-200 rounded"
|
||||
onClick={() => router.push(`/${workspaceSlug}/projects/${project.id}/settings`)}
|
||||
onClick={(e) => {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
|
||||
router.push(`/${workspaceSlug}/projects/${project.id}/settings`);
|
||||
}}
|
||||
>
|
||||
<Pencil className="h-3.5 w-3.5" />
|
||||
</button>
|
||||
|
@ -4,7 +4,6 @@ export * from "./card-list";
|
||||
export * from "./card";
|
||||
export * from "./create-project-modal";
|
||||
export * from "./delete-project-modal";
|
||||
export * from "./delete-project-section";
|
||||
export * from "./form-loader";
|
||||
export * from "./form";
|
||||
export * from "./join-project-modal";
|
||||
|
@ -15,6 +15,7 @@ export interface IDeleteProjectSection {
|
||||
|
||||
export const DeleteProjectSection: React.FC<IDeleteProjectSection> = (props) => {
|
||||
const { projectDetails, handleDelete } = props;
|
||||
|
||||
return (
|
||||
<Disclosure as="div" className="border-t border-custom-border-400">
|
||||
{({ open }) => (
|
@ -1 +1,2 @@
|
||||
export * from "./delete-project-section";
|
||||
export * from "./features-list";
|
||||
|
@ -27,7 +27,7 @@ const PageNotFound: NextPage = () => (
|
||||
</p>
|
||||
</div>
|
||||
<Link href="/">
|
||||
<a className="block">
|
||||
<a className="flex justify-center">
|
||||
<Button variant="neutral-primary" size="md">
|
||||
Go to Home
|
||||
</Button>
|
||||
|
Loading…
Reference in New Issue
Block a user