Function
Matrix
({
channels,
currentCommunity,
communities,
settings,
permissions,
isSubDomainRouting,
dms,
}: Props)
Source from the content-addressed store, hash-verified
| 21 | } |
| 22 | |
| 23 | export default function Matrix({ |
| 24 | channels, |
| 25 | currentCommunity, |
| 26 | communities, |
| 27 | settings, |
| 28 | permissions, |
| 29 | isSubDomainRouting, |
| 30 | dms, |
| 31 | }: Props) { |
| 32 | useEffect(() => { |
| 33 | localStorage.set('pages.last', { |
| 34 | communityId: currentCommunity.id, |
| 35 | page: 'settings', |
| 36 | }); |
| 37 | }, [currentCommunity]); |
| 38 | |
| 39 | return ( |
| 40 | <PageLayout |
| 41 | channels={channels} |
| 42 | communities={communities} |
| 43 | currentCommunity={currentCommunity} |
| 44 | permissions={permissions} |
| 45 | settings={settings} |
| 46 | isSubDomainRouting={isSubDomainRouting} |
| 47 | className="w-full" |
| 48 | dms={dms} |
| 49 | > |
| 50 | <MatrixView api={api} currentCommunity={currentCommunity} /> |
| 51 | </PageLayout> |
| 52 | ); |
| 53 | } |
Callers
nothing calls this directly
Tested by
no test coverage detected