File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 11import { Fragment } from 'react' ;
2+ import styled from '@emotion/styled' ;
23
34import { LinkButton } from 'sentry/components/core/button/linkButton' ;
45import { DateTime } from 'sentry/components/dateTime' ;
@@ -24,15 +25,15 @@ export function StorySourceLinks(props: {story: StoryDescriptor}) {
2425 return response . json ( ) ;
2526 } ,
2627 } ) ;
28+
2729 const committerDate = data ?. [ 0 ] ?. commit . committer . date ;
2830
2931 return (
3032 < Fragment >
3133 { committerDate ? (
32- < Fragment >
33- Story Last Edited:
34- < DateTime date = { committerDate } />
35- </ Fragment >
34+ < LastEdited >
35+ Last Edited: < DateTime date = { committerDate } />
36+ </ LastEdited >
3637 ) : null }
3738 < LinkButton
3839 href = { `https://github.com/getsentry/sentry/blob/master/static/${ props . story . filename } ` }
@@ -55,3 +56,8 @@ export function StorySourceLinks(props: {story: StoryDescriptor}) {
5556 </ Fragment >
5657 ) ;
5758}
59+
60+ const LastEdited = styled ( 'span' ) `
61+ font-size: ${ p => p . theme . fontSizeSmall } ;
62+ color: ${ p => p . theme . tokens . content . muted } ;
63+ ` ;
You can’t perform that action at this time.
0 commit comments