mirror of
https://github.com/mediacms-io/mediacms.git
synced 2026-02-07 16:03:06 -05:00
Frontent dev env (#247)
* Added frontend development files/environment * More items-categories related removals * Improvements in pages templates (inc. static pages) * Improvements in video player * Added empty home page message + cta * Updates in media, playlist and management pages * Improvements in material icons font loading * Replaced media & playlists links in frontend dev-env * frontend package version update * chnaged frontend dev url port * static files update * Changed default position of theme switcher * enabled frontend docker container
This commit is contained in:
27
frontend/src/static/js/components/MediaListHeader.tsx
Executable file
27
frontend/src/static/js/components/MediaListHeader.tsx
Executable file
@@ -0,0 +1,27 @@
|
||||
import React from 'react';
|
||||
|
||||
interface MediaListHeaderProps {
|
||||
title?: string;
|
||||
viewAllLink?: string;
|
||||
viewAllText?: string;
|
||||
className?: string;
|
||||
style?: { [key: string]: any };
|
||||
}
|
||||
|
||||
export const MediaListHeader: React.FC<MediaListHeaderProps> = (props) => {
|
||||
const viewAllText = props.viewAllText || 'VIEW ALL';
|
||||
return (
|
||||
<div className={(props.className ? props.className + ' ' : '') + 'media-list-header'} style={props.style}>
|
||||
<h2>{props.title}</h2>
|
||||
{props.viewAllLink ? (
|
||||
<h3>
|
||||
{' '}
|
||||
<a href={props.viewAllLink} title={viewAllText}>
|
||||
{' '}
|
||||
{viewAllText || props.viewAllLink}{' '}
|
||||
</a>{' '}
|
||||
</h3>
|
||||
) : null}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user