nicolium: add config for displaying compose box in timelines. it will be added to settings later
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@@ -31,7 +31,7 @@ const HomeLayout = () => {
|
||||
const { data: account } = useOwnAccount();
|
||||
const features = useFeatures();
|
||||
const frontendConfig = useFrontendConfig();
|
||||
const { disableUserProvidedMedia } = useSettings();
|
||||
const { disableUserProvidedMedia, composeInTimelines } = useSettings();
|
||||
|
||||
const composeId = 'home';
|
||||
const composeBlock = useRef<HTMLDivElement>(null);
|
||||
@@ -51,7 +51,7 @@ const HomeLayout = () => {
|
||||
return (
|
||||
<>
|
||||
<Layout.Main className='⁂-layout__main--home'>
|
||||
{me && (
|
||||
{composeInTimelines && me && (
|
||||
<div
|
||||
className={clsx('⁂-compose-block', {
|
||||
'⁂-compose-block--dragging': isDragging,
|
||||
|
||||
@@ -53,6 +53,7 @@ const settingsSchema = v.object({
|
||||
disableUserProvidedMedia: v.fallback(v.boolean(), false),
|
||||
stripMetadata: v.fallback(v.boolean(), false),
|
||||
storeSettingsInNotes: v.fallback(v.boolean(), false),
|
||||
composeInTimelines: v.fallback(v.boolean(), true),
|
||||
|
||||
theme: v.optional(
|
||||
coerceObject({
|
||||
|
||||
Reference in New Issue
Block a user