Merge branch 'remove-fragments-of-bookmark-folders' into 'main'
Remove fragments of bookmark folders See merge request soapbox-pub/soapbox!3288
This commit is contained in:
commit
1e2ca045c7
|
@ -146,7 +146,6 @@ interface IStatusActionBar {
|
||||||
expandable?: boolean;
|
expandable?: boolean;
|
||||||
space?: 'sm' | 'md' | 'lg';
|
space?: 'sm' | 'md' | 'lg';
|
||||||
statusActionButtonTheme?: 'default' | 'inverse';
|
statusActionButtonTheme?: 'default' | 'inverse';
|
||||||
fromBookmarks?: boolean;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const StatusActionBar: React.FC<IStatusActionBar> = ({
|
const StatusActionBar: React.FC<IStatusActionBar> = ({
|
||||||
|
@ -154,7 +153,6 @@ const StatusActionBar: React.FC<IStatusActionBar> = ({
|
||||||
expandable = true,
|
expandable = true,
|
||||||
space = 'sm',
|
space = 'sm',
|
||||||
statusActionButtonTheme = 'default',
|
statusActionButtonTheme = 'default',
|
||||||
fromBookmarks = false,
|
|
||||||
}) => {
|
}) => {
|
||||||
const intl = useIntl();
|
const intl = useIntl();
|
||||||
const history = useHistory();
|
const history = useHistory();
|
||||||
|
|
|
@ -129,7 +129,6 @@ const StatusList: React.FC<IStatusList> = ({
|
||||||
contextType={timelineId}
|
contextType={timelineId}
|
||||||
showGroup={showGroup}
|
showGroup={showGroup}
|
||||||
variant={divideType === 'border' ? 'slim' : 'rounded'}
|
variant={divideType === 'border' ? 'slim' : 'rounded'}
|
||||||
fromBookmarks={other.scrollKey === 'bookmarked_statuses'}
|
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
|
@ -58,7 +58,6 @@ export interface IStatus {
|
||||||
variant?: 'default' | 'rounded' | 'slim';
|
variant?: 'default' | 'rounded' | 'slim';
|
||||||
showGroup?: boolean;
|
showGroup?: boolean;
|
||||||
accountAction?: React.ReactElement;
|
accountAction?: React.ReactElement;
|
||||||
fromBookmarks?: boolean;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const Status: React.FC<IStatus> = (props) => {
|
const Status: React.FC<IStatus> = (props) => {
|
||||||
|
@ -78,7 +77,6 @@ const Status: React.FC<IStatus> = (props) => {
|
||||||
hideActionBar,
|
hideActionBar,
|
||||||
variant = 'rounded',
|
variant = 'rounded',
|
||||||
showGroup = true,
|
showGroup = true,
|
||||||
fromBookmarks = false,
|
|
||||||
} = props;
|
} = props;
|
||||||
|
|
||||||
const intl = useIntl();
|
const intl = useIntl();
|
||||||
|
@ -479,7 +477,7 @@ const Status: React.FC<IStatus> = (props) => {
|
||||||
|
|
||||||
{(!hideActionBar && !isUnderReview) && (
|
{(!hideActionBar && !isUnderReview) && (
|
||||||
<div className='pt-4'>
|
<div className='pt-4'>
|
||||||
<StatusActionBar status={actualStatus} fromBookmarks={fromBookmarks} />
|
<StatusActionBar status={actualStatus} />
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -120,7 +120,7 @@ const appendToList = (state: State, listType: string, statuses: APIEntity[], nex
|
||||||
const prependOneToList = (state: State, listType: string, status: APIEntity) => {
|
const prependOneToList = (state: State, listType: string, status: APIEntity) => {
|
||||||
const statusId = getStatusId(status);
|
const statusId = getStatusId(status);
|
||||||
return state.update(listType, StatusListRecord(), listMap => listMap.update('items', items => {
|
return state.update(listType, StatusListRecord(), listMap => listMap.update('items', items => {
|
||||||
return ImmutableOrderedSet([statusId]).union(items as ImmutableOrderedSet<string>);
|
return ImmutableOrderedSet([statusId]).union(items);
|
||||||
}));
|
}));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,6 @@ const baseStatusSchema = z.object({
|
||||||
name: z.string(),
|
name: z.string(),
|
||||||
website: z.string().url().nullable().catch(null),
|
website: z.string().url().nullable().catch(null),
|
||||||
}).nullable().catch(null),
|
}).nullable().catch(null),
|
||||||
bookmark_folder: z.string().nullable().catch(null),
|
|
||||||
bookmarked: z.coerce.boolean(),
|
bookmarked: z.coerce.boolean(),
|
||||||
card: cardSchema.nullable().catch(null),
|
card: cardSchema.nullable().catch(null),
|
||||||
content: contentSchema,
|
content: contentSchema,
|
||||||
|
|
Loading…
Reference in New Issue