Skip to content

Commit

Permalink
Fix: sample queries documentation link (#570)
Browse files Browse the repository at this point in the history
Fix: sample queries documentation link
  • Loading branch information
thewahome committed Jun 2, 2020
2 parents 18636e4 + fe61218 commit 5cfa5fa
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 25 deletions.
4 changes: 3 additions & 1 deletion src/app/views/sidebar/Sidebar.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ export const sidebarStyles = (theme: ITheme) => {
marginTop: '-7.5%',
marginRight: theme.spacing.s1,
},

links: {
color: `${theme.palette.blueMid} !important`,
},
};
};
48 changes: 24 additions & 24 deletions src/app/views/sidebar/sample-queries/SampleQueries.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,18 +170,18 @@ export class SampleQueries extends Component<ISampleQueriesProps, any> {

default:
return <TooltipHost
tooltipProps={{
onRenderContent: () => <div style={{ paddingBottom: 3 }}>
{item.method} {queryContent} </div>
}}
id={getId()}
calloutProps={{ gapSpace: 0 }}
styles={{ root: { display: 'inline-block' } }}
>
<span aria-label={queryContent} className={classes.queryContent}>
{queryContent}
</span>
</TooltipHost>;
tooltipProps={{
onRenderContent: () => <div style={{ paddingBottom: 3 }}>
{item.method} {queryContent} </div>
}}
id={getId()}
calloutProps={{ gapSpace: 0 }}
styles={{ root: { display: 'inline-block' } }}
>
<span aria-label={queryContent} className={classes.queryContent}>
{queryContent}
</span>
</TooltipHost>;
}
}
};
Expand Down Expand Up @@ -218,11 +218,11 @@ export class SampleQueries extends Component<ISampleQueriesProps, any> {
styles={{
check: { display: 'none' },
title: {
fontSize: FontSizes.medium,
fontWeight: FontWeights.semibold
},
expand: {
fontSize: FontSizes.small,
fontSize: FontSizes.medium,
fontWeight: FontWeights.semibold
},
expand: {
fontSize: FontSizes.small,
}
}}
{...props}
Expand Down Expand Up @@ -318,20 +318,20 @@ export class SampleQueries extends Component<ISampleQueriesProps, any> {
<FormattedMessage id='viewing a cached set' />
</MessageBar>}
<MessageBar messageBarType={MessageBarType.info}
isMultiline={false}
isMultiline={true}
dismissButtonAriaLabel='Close'>
<FormattedMessage id='see more queries' />
<a target='_blank'
<a target='_blank' className={classes.links}
href={`https://docs.microsoft.com/${geLocale}/graph/api/overview?view=graph-rest-1.0`}>
<FormattedMessage id='Microsoft Graph API Reference docs' />
</a>
</MessageBar>
<DetailsList className={classes.queryList}
cellStyleProps={{
cellRightPadding: 0,
cellExtraRightPadding: 0,
cellLeftPadding: 0,
}}
cellStyleProps={{
cellRightPadding: 0,
cellExtraRightPadding: 0,
cellLeftPadding: 0,
}}
layoutMode={DetailsListLayoutMode.justified}
onRenderItemColumn={this.renderItemColumn}
items={groupedList.samples}
Expand Down
4 changes: 4 additions & 0 deletions src/app/views/sidebar/sample-queries/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ export function getTokens(user?: any) {
placeholder: 'destination-address',
demoTenantValue: '1.2.3.5',
},
{
placeholder: 'user-id',
demoTenantValue: 'd4957c9d-869e-4364-830c-d0c95be72738',
},
{
placeholder: 'today',
defaultValueFn: () => {
Expand Down

0 comments on commit 5cfa5fa

Please sign in to comment.