How can I config remove goBack button on refine?
How can I config remove goBack button on refine?
Edit and that have the prop.options prop in the <Refine> component. Here's how you can do it:options prop for resources has been deprecated and replaced with meta. However, there isn't a direct global configuration for hiding the goBack button in the way I previously described.false or null for each component where you want to hide the button.ShowCreategoBackgoBackgoBackgoBackhideGoBackButton: trueoptions.buttonsgoBack={false}<Show /> import { useBack } from "@refinedev/core";
import { Show } from "@refinedev/antd";
const PostShow: React.FC = () => {
const back = useBack();
return (
<Show goBack={false} headerProps={{ onBack: back }}>
<p>Rest of your page here</p>
</Show>
);
};import { Refine } from "@refinedev/core";
<Refine
options={{
buttons: {
hideGoBackButton: true,
},
}}
// ... other props
/><Show goBack={false}>
<p>Rest of your page here</p>
</Show>