mirror of
https://github.com/filecoin-project/slate.git
synced 2024-09-11 22:07:08 +03:00
feat(filter-utilities): remove file data attributes
This commit is contained in:
parent
5220491313
commit
64d4ddfd02
@ -52,10 +52,10 @@ const FILTERING_HANDLERS = {
|
||||
[FILTER_VIEWS_IDS.initial]: {
|
||||
filters: {
|
||||
library: (object) => object,
|
||||
images: (object) => isImageType(object.data.type),
|
||||
videos: (object) => isVideoType(object.data.type),
|
||||
audios: (object) => isAudioType(object.data.type),
|
||||
documents: (object) => isDocument(object.filename, object.data.type),
|
||||
images: (object) => isImageType(object.type),
|
||||
videos: (object) => isVideoType(object.type),
|
||||
audios: (object) => isAudioType(object.type),
|
||||
documents: (object) => isDocument(object.filename, object.type),
|
||||
},
|
||||
},
|
||||
[FILTER_VIEWS_IDS.browser]: {
|
||||
|
@ -291,7 +291,7 @@ export const isNFTLink = (file) => {
|
||||
domain = domain.toLowerCase();
|
||||
return Constants.NFTDomains.includes(domain);
|
||||
};
|
||||
const isLinkWithSource = (source) => (file) => file.isLink && file.data.source === source;
|
||||
const isLinkWithSource = (source) => (file) => file.isLink && file.source === source;
|
||||
export const isTwitterLink = isLinkWithSource("Twitter");
|
||||
export const isYoutubeLink = isLinkWithSource("YouTube");
|
||||
export const isTwitchLink = isLinkWithSource("Twitch");
|
||||
|
Loading…
Reference in New Issue
Block a user