fix: removing additional interface
Signed-off-by: Kalle Ericson <7943407+kalleericson@users.noreply.github.com>
This commit is contained in:
@@ -266,20 +266,14 @@ export interface TaskStepsProps {
|
||||
// @alpha
|
||||
export const TemplateCard: (props: TemplateCardProps) => React_2.JSX.Element;
|
||||
|
||||
// @alpha (undocumented)
|
||||
export interface TemplateCardAdditionalLink {
|
||||
// (undocumented)
|
||||
icon: IconComponent;
|
||||
// (undocumented)
|
||||
text: string;
|
||||
// (undocumented)
|
||||
url: string;
|
||||
}
|
||||
|
||||
// @alpha
|
||||
export interface TemplateCardProps {
|
||||
// (undocumented)
|
||||
additionalLinks?: TemplateCardAdditionalLink[];
|
||||
additionalLinks?: {
|
||||
icon: IconComponent;
|
||||
text: string;
|
||||
url: string;
|
||||
}[];
|
||||
// (undocumented)
|
||||
onSelected?: (template: TemplateEntityV1beta3) => void;
|
||||
// (undocumented)
|
||||
|
||||
@@ -37,20 +37,17 @@ const useStyles = makeStyles<Theme>(() => ({
|
||||
actionContainer: { padding: '16px', flex: 1, alignItems: 'flex-end' },
|
||||
}));
|
||||
|
||||
/** @alpha */
|
||||
export interface TemplateCardAdditionalLink {
|
||||
icon: IconComponent;
|
||||
text: string;
|
||||
url: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* The Props for the {@link TemplateCard} component
|
||||
* @alpha
|
||||
*/
|
||||
export interface TemplateCardProps {
|
||||
template: TemplateEntityV1beta3;
|
||||
additionalLinks?: TemplateCardAdditionalLink[];
|
||||
additionalLinks?: {
|
||||
icon: IconComponent;
|
||||
text: string;
|
||||
url: string;
|
||||
}[];
|
||||
onSelected?: (template: TemplateEntityV1beta3) => void;
|
||||
}
|
||||
|
||||
|
||||
@@ -22,7 +22,6 @@ import { makeStyles, Theme } from '@material-ui/core/styles';
|
||||
import LanguageIcon from '@material-ui/icons/Language';
|
||||
import React from 'react';
|
||||
import { CardLink } from './CardLink';
|
||||
import { TemplateCardAdditionalLink } from './TemplateCard';
|
||||
|
||||
const useStyles = makeStyles<Theme>({});
|
||||
|
||||
@@ -32,7 +31,11 @@ const useStyles = makeStyles<Theme>({});
|
||||
*/
|
||||
export interface TemplateCardLinksProps {
|
||||
template: TemplateEntityV1beta3;
|
||||
additionalLinks?: TemplateCardAdditionalLink[];
|
||||
additionalLinks?: {
|
||||
icon: IconComponent;
|
||||
text: string;
|
||||
url: string;
|
||||
}[];
|
||||
}
|
||||
export const TemplateCardLinks = ({
|
||||
template,
|
||||
|
||||
@@ -13,8 +13,4 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
export {
|
||||
TemplateCard,
|
||||
type TemplateCardProps,
|
||||
type TemplateCardAdditionalLink,
|
||||
} from './TemplateCard';
|
||||
export { TemplateCard, type TemplateCardProps } from './TemplateCard';
|
||||
|
||||
Reference in New Issue
Block a user