mirror of
https://github.com/cfngc4594/monaco-editor-lsp-next.git
synced 2025-05-18 15:26:36 +00:00
refactor(back-button): relocate and rename back button component
- Move from features/problems/components to shared components directory - Rename NavigateBackButton to simpler BackButton - Update component interface naming to BackButtonProps - Keep all existing functionality intact
This commit is contained in:
parent
ad8a3e646e
commit
9766dea138
@ -10,12 +10,12 @@ import { useTranslations } from "next-intl";
|
||||
import { ArrowLeftIcon } from "lucide-react";
|
||||
import { Button } from "@/components/ui/button";
|
||||
|
||||
interface NavigateBackButtonProps {
|
||||
interface BackButtonProps {
|
||||
href: string;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const NavigateBackButton = ({ href, className }: NavigateBackButtonProps) => {
|
||||
export const BackButton = ({ href, className }: BackButtonProps) => {
|
||||
const t = useTranslations();
|
||||
|
||||
return (
|
||||
@ -39,5 +39,3 @@ const NavigateBackButton = ({ href, className }: NavigateBackButtonProps) => {
|
||||
</TooltipProvider>
|
||||
);
|
||||
};
|
||||
|
||||
export { NavigateBackButton };
|
Loading…
Reference in New Issue
Block a user