hide footer in conversation page

This commit is contained in:
m5r
2022-05-20 01:05:06 +02:00
parent 5bf885c060
commit 8607e70007
3 changed files with 4 additions and 4 deletions

View File

@ -34,10 +34,8 @@ export const loader: LoaderFunction = async ({ request }) => {
};
export default function __App() {
const hideFooter = false;
const matches = useMatches();
// matches[0].handle.hideFooter
// console.log("matches", matches);
const hideFooter = matches.some(match => match.handle?.hideFooter === true);
return (
<div className="h-full w-full overflow-hidden fixed bg-gray-100">

View File

@ -91,3 +91,5 @@ export default function ConversationPage() {
</section>
);
}
export const handle = { hideFooter: true };