Skip to content

Commit

Permalink
AppCatalog: Adds comp and story for SettingsLink
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent T <[email protected]>
  • Loading branch information
vyncent-t committed Aug 28, 2024
1 parent 79b1d08 commit 0f98873
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
13 changes: 13 additions & 0 deletions app-catalog/src/components/charts/SettingsLink.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { Meta, Story } from '@storybook/react';
import React from 'react';
import { SettingsLink } from './SettingsLink';

export default {
title: 'Components/SettingsLink',
component: SettingsLink,
} as Meta;

const Template: Story = (args) => <SettingsLink {...args} />;

export const Title = Template.bind({});
Title.args = {};
25 changes: 25 additions & 0 deletions app-catalog/src/components/charts/SettingsLink.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { Link as RouterLink } from '@kinvolk/headlamp-plugin/lib/CommonComponents';
import {
Typography,
useTheme,
} from '@mui/material';



export function SettingsLink() {
const theme = useTheme();

return (
<RouterLink routeName="/settings/plugins/app-catalog" tooltip="App-Catalog Settings">
<Typography
sx={{
size: '1rem',
marginLeft: '3rem',
color: theme.palette.text.primary,
}}
>
Settings
</Typography>
</RouterLink>
);
}

0 comments on commit 0f98873

Please sign in to comment.