-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
97 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
.ArticleSectionHeading { | ||
margin-bottom: 1rem; | ||
font-size: 13px; | ||
color: var(--black-600); | ||
font-weight: var(--weight-semi-bold); | ||
text-transform: uppercase; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
import React from 'react' | ||
|
||
import Heading from './Typography/Heading' | ||
|
||
import './ArticleSectionHeading.css' | ||
|
||
interface Props { | ||
children: React.ReactText | ||
} | ||
|
||
export default function ArticleSectionHeading({ children }: Props) { | ||
return <h2 className="ArticleSectionHeading">{children}</h2> | ||
return ( | ||
<Heading className="ArticleSectionHeading" size="2xs" weight="semi-bold"> | ||
{children} | ||
</Heading> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import React from 'react' | ||
|
||
import type { Meta, StoryObj } from '@storybook/react' | ||
|
||
import Forum from '../components/Icon/Forum' | ||
import OpenFolder from '../components/Icon/OpenFolder' | ||
import SidebarLinkButton from '../components/Proposal/View/SidebarLinkButton' | ||
|
||
const meta: Meta<typeof SidebarLinkButton> = { | ||
title: 'Common/SidebarLinkButton', | ||
component: SidebarLinkButton, | ||
parameters: { | ||
layout: 'centered', | ||
}, | ||
tags: ['autodocs'], | ||
} | ||
|
||
export default meta | ||
type Story = StoryObj<typeof SidebarLinkButton> | ||
|
||
const Container = (props: any) => <div style={{ width: '250px' }} {...props} /> | ||
|
||
export const External: Story = { | ||
args: { | ||
icon: <Forum size={20} />, | ||
isExternal: true, | ||
children: 'Discuss in the forum', | ||
}, | ||
decorators: [ | ||
(Story) => ( | ||
<Container> | ||
<Story /> | ||
</Container> | ||
), | ||
], | ||
} | ||
|
||
export const Internal: Story = { | ||
args: { | ||
icon: <OpenFolder size={20} />, | ||
isExternal: false, | ||
children: 'View all proposals', | ||
}, | ||
decorators: [ | ||
(Story) => ( | ||
<Container> | ||
<Story /> | ||
</Container> | ||
), | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters