Skip to content

Commit

Permalink
chore: pr fixes
Browse files Browse the repository at this point in the history
- change status prop name to isDeprecated
- remove unnecessary skipBorder prop
  • Loading branch information
marissahuysentruyt committed Oct 16, 2024
1 parent 0cc3ca1 commit e83a7c6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .storybook/blocks/ComponentDetails.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ export const ResourceLinkContent = ({ heading, alt, logo, href }) => {
* @param {string} rootClassName - a component's default rootClass arg
* @returns {string}
*/
export const ResourceListDetails = ({ packageName, spectrumData = [], rootClassName, status }) => {
export const ResourceListDetails = ({ packageName, spectrumData = [], rootClassName, isDeprecated }) => {
if (!packageName) return;

let href;
Expand All @@ -368,7 +368,7 @@ export const ResourceListDetails = ({ packageName, spectrumData = [], rootClassN
}

return (
<ResourceSection skipBorder={true} className="sb-unstyled">
<ResourceSection className="sb-unstyled">
{href ?
<ResourceLinkContent
className="doc-block-resource-cards"
Expand All @@ -387,7 +387,7 @@ export const ResourceListDetails = ({ packageName, spectrumData = [], rootClassN
heading="View repository"
alt="GitHub"
logo="GitHub"
href={status ?
href={isDeprecated ?
`https://github.com/adobe/spectrum-css/tree/main/.storybook/deprecated/${packageName.split('/').pop()}`
: `https://github.com/adobe/spectrum-css/tree/main/components/${packageName.split('/').pop()}`}/>
</ResourceSection>
Expand Down Expand Up @@ -451,7 +451,7 @@ export const ComponentDetails = () => {
</>
}
</DList>
<ResourceListDetails packageName={packageName} spectrumData={spectrumData} rootClassName={rootClassName} status={isDeprecated}/>
<ResourceListDetails packageName={packageName} spectrumData={spectrumData} rootClassName={rootClassName} isDeprecated={isDeprecated}/>
</>
: ""}
</ResetWrapper>
Expand Down

0 comments on commit e83a7c6

Please sign in to comment.