Profile: use AppTopBar
All checks were successful
/ depoly (push) Successful in 1m22s

This commit is contained in:
thislight 2024-12-01 23:28:23 +08:00
parent cf985f05ca
commit 530a89755c
No known key found for this signature in database
GPG key ID: FCFE5192241CCD4E

View file

@ -62,6 +62,7 @@ import {
createSingluarItemSelection, createSingluarItemSelection,
default as ItemSelectionProvider, default as ItemSelectionProvider,
} from "../timelines/toots/ItemSelectionProvider"; } from "../timelines/toots/ItemSelectionProvider";
import AppTopBar from "~material/AppTopBar";
const Profile: Component = () => { const Profile: Component = () => {
const { pop } = useNavigator(); const { pop } = useNavigator();
@ -195,20 +196,15 @@ const Profile: Component = () => {
return ( return (
<Scaffold <Scaffold
topbar={ topbar={
<AppBar <AppTopBar
role="navigation" role="navigation"
position="static" position="static"
color={scrolledPastBanner() ? "primary" : "transparent"} color={scrolledPastBanner() ? "primary" : "transparent"}
elevation={scrolledPastBanner() ? undefined : 0} elevation={scrolledPastBanner() ? undefined : 0}
> style={{
<Toolbar
variant="dense"
sx={{
display: "flex",
color: scrolledPastBanner() color: scrolledPastBanner()
? undefined ? undefined
: bannerSampledColors()?.text, : bannerSampledColors()?.text,
paddingTop: "var(--safe-area-inset-top)",
}} }}
> >
<IconButton color="inherit" onClick={[pop, 1]} aria-label="Close"> <IconButton color="inherit" onClick={[pop, 1]} aria-label="Close">
@ -231,8 +227,7 @@ const Profile: Component = () => {
> >
<MoreVert /> <MoreVert />
</IconButton> </IconButton>
</Toolbar> </AppTopBar>
</AppBar>
} }
class="Profile" class="Profile"
> >