mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
fix: logo size in get sample section in app integration guide (#4354)
This commit is contained in:
parent
ec081d9740
commit
6e03b83658
3 changed files with 5 additions and 20 deletions
|
@ -25,10 +25,6 @@
|
|||
}
|
||||
|
||||
.logo {
|
||||
padding: _.unit(2);
|
||||
|
||||
svg {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
}
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
}
|
||||
|
|
|
@ -22,11 +22,7 @@ export default function Sample() {
|
|||
|
||||
return (
|
||||
<aside className={styles.sample}>
|
||||
{Logo && (
|
||||
<div className={styles.logo}>
|
||||
<Logo />
|
||||
</div>
|
||||
)}
|
||||
{Logo && <Logo className={styles.logo} />}
|
||||
<hgroup>
|
||||
<header>Want to see a sample?</header>
|
||||
<p>Check out our repository for a sample application that uses this guide.</p>
|
||||
|
|
|
@ -2,14 +2,7 @@ import { DomainStatus, type ApplicationResponse } from '@logto/schemas';
|
|||
import { MDXProvider } from '@mdx-js/react';
|
||||
import { conditional } from '@silverhand/essentials';
|
||||
import classNames from 'classnames';
|
||||
import {
|
||||
useContext,
|
||||
Suspense,
|
||||
createContext,
|
||||
useMemo,
|
||||
type LazyExoticComponent,
|
||||
type ComponentType,
|
||||
} from 'react';
|
||||
import { useContext, Suspense, createContext, useMemo, type LazyExoticComponent } from 'react';
|
||||
|
||||
import guides from '@/assets/docs/guides';
|
||||
import { type GuideMetadata } from '@/assets/docs/guides/types';
|
||||
|
@ -27,7 +20,7 @@ import * as styles from './index.module.scss';
|
|||
|
||||
type GuideContextType = {
|
||||
metadata: Readonly<GuideMetadata>;
|
||||
Logo?: LazyExoticComponent<ComponentType>;
|
||||
Logo?: LazyExoticComponent<SvgComponent>;
|
||||
app: ApplicationResponse;
|
||||
endpoint: string;
|
||||
alternativeEndpoint?: string;
|
||||
|
|
Loading…
Reference in a new issue