tangled
alpha
login
or
join now
leaflet.pub
/
leaflet
288
fork
atom
a tool for shared writing and social publishing
288
fork
atom
overview
issues
26
pulls
pipelines
changed some labels in the settings menu
cozylittle.house
3 months ago
4e306cba
a2d25953
+8
-24
2 changed files
expand all
collapse all
unified
split
app
(home-pages)
home
Actions
AccountSettings.tsx
lish
[did]
[publication]
dashboard
Actions.tsx
+4
-12
app/(home-pages)/home/Actions/AccountSettings.tsx
···
56
56
props.setState("general");
57
57
}}
58
58
>
59
59
-
Settings
59
59
+
General
60
60
<ArrowRightTiny />
61
61
</button>
62
62
<button
···
64
64
type="button"
65
65
onClick={() => props.setState("theme")}
66
66
>
67
67
-
Theme
67
67
+
Account Theme
68
68
<ArrowRightTiny />
69
69
</button>
70
70
-
<SpeedyLink
71
71
-
className={menuItemClassName}
72
72
-
href="https://about.leaflet.pub/
73
73
-
"
74
74
-
>
75
75
-
About Leaflet
76
76
-
<ArrowRightTiny />
77
77
-
</SpeedyLink>
78
70
</div>
79
71
);
80
72
};
···
119
111
backToMenuAction?: () => void;
120
112
}) => {
121
113
return (
122
122
-
<div className="flex justify-between font-bold text-secondary bg-border-light -mx-3 -mt-2 px-3 pt-2 pb-1 mb-1">
114
114
+
<div className="flex justify-between font-bold text-secondary bg-border-light -mx-3 -mt-2 px-3 py-1 mb-1">
123
115
{props.state === "menu"
124
116
? "Settings"
125
117
: props.state === "general"
126
118
? "General"
127
119
: props.state === "theme"
128
128
-
? "Publication Theme"
120
120
+
? "Account Theme"
129
121
: ""}
130
122
{props.backToMenuAction && (
131
123
<button
+4
-12
app/lish/[did]/[publication]/dashboard/Actions.tsx
···
126
126
setLoading={setLoading}
127
127
/>
128
128
) : (
129
129
-
<SettingsMenu
129
129
+
<PubSettingsMenu
130
130
state={state}
131
131
setState={setState}
132
132
loading={loading}
···
137
137
);
138
138
}
139
139
140
140
-
const SettingsMenu = (props: {
140
140
+
const PubSettingsMenu = (props: {
141
141
state: "menu" | "general" | "theme";
142
142
setState: (s: typeof props.state) => void;
143
143
loading: boolean;
···
160
160
props.setState("general");
161
161
}}
162
162
>
163
163
-
Settings
163
163
+
Publication Settings
164
164
<ArrowRightTiny />
165
165
</button>
166
166
<button
···
171
171
Publication Theme
172
172
<ArrowRightTiny />
173
173
</button>
174
174
-
<SpeedyLink
175
175
-
className={menuItemClassName}
176
176
-
href="https://about.leaflet.pub/
177
177
-
"
178
178
-
>
179
179
-
About Leaflet
180
180
-
<ArrowRightTiny />
181
181
-
</SpeedyLink>
182
174
</div>
183
175
);
184
176
};
···
190
182
setLoadingAction: (l: boolean) => void;
191
183
}) => {
192
184
return (
193
193
-
<div className="flex justify-between font-bold text-secondary bg-border-light -mx-3 -mt-2 px-3 pt-2 pb-1 mb-1">
185
185
+
<div className="flex justify-between font-bold text-secondary bg-border-light -mx-3 -mt-2 px-3 py-2 mb-1">
194
186
{props.state === "menu"
195
187
? "Settings"
196
188
: props.state === "general"