Remove unused isOwner variable from Layout

cgen-6129c71bbc9f45bb9219c2eb26a9a958
This commit is contained in:
Builder.io 2025-11-08 14:18:00 +00:00
parent 86f568873c
commit 2e4ea28bcf

View file

@ -64,8 +64,7 @@ const ARM_LOGOS: Record<string, string> = {
export default function CodeLayout({ children, hideFooter }: LayoutProps) {
const location = useLocation();
const navigate = useNavigate();
const { user, profile, roles, signOut, loading, profileComplete } = useAuth();
const isOwner = Array.isArray(roles) && roles.includes("owner");
const { user, profile, signOut, loading, profileComplete } = useAuth();
const [mobileArmsOpen, setMobileArmsOpen] = useState(false);
const navigation = [