tangled
alpha
login
or
join now
leaflet.pub
/
leaflet
289
fork
atom
a tool for shared writing and social publishing
289
fork
atom
overview
issues
28
pulls
pipelines
add theme provider to un-logged in for default theme
awarm.space
4 months ago
75ef6357
d6f6eb96
+6
-1
1 changed file
expand all
collapse all
unified
split
app
(home-pages)
layout.tsx
+6
-1
app/(home-pages)/layout.tsx
···
10
10
children: React.ReactNode;
11
11
}) {
12
12
let identityData = await getIdentityData();
13
13
-
if (!identityData?.home_leaflet) return <>{props.children}</>;
13
13
+
if (!identityData?.home_leaflet)
14
14
+
return (
15
15
+
<>
16
16
+
<ThemeProvider entityID={""}>{props.children}</ThemeProvider>
17
17
+
</>
18
18
+
);
14
19
let facts =
15
20
(identityData?.home_leaflet?.permission_token_rights[0].entity_sets?.entities.flatMap(
16
21
(e) => e.facts,