Skip to content

Commit

Permalink
remove dark/white mode for logo
Browse files Browse the repository at this point in the history
  • Loading branch information
SamueleA committed Oct 10, 2023
1 parent 941ce8a commit fe3fdc2
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 16 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,7 @@ The settings are described in more detailed in the Sequence Kit documentation.
defaultTheme: 'light',
position: 'top-left',
signIn: {
logoUrlDarkMode: 'https://logo-dark-mode.svg',
logoUrlLightMode: 'https://logo-light-mode.svg',
logoUrl: 'https://logo-dark-mode.svg',
projectName: 'my app',
showEmailInput: true,
miniAuthOptions: ['google', 'facebook', 'twitch', 'apple'],
Expand Down
3 changes: 1 addition & 2 deletions examples/react/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ function App() {
defaultTheme: THEMES.dark,
signIn: {
projectName: 'Skyweaver',
// logoUrlDarkMode: 'sw-logo-white.svg',
// logoUrlLightMode: 'sw-logo-black.svg',
// logoUrl: 'sw-logo-white.svg',
},
displayedAssets: [
// Matic token
Expand Down
3 changes: 1 addition & 2 deletions packages/kit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,7 @@ The settings are described in more detailed in the Sequence Kit documentation.
defaultTheme: 'light',
position: 'top-left',
signIn: {
logoUrlDarkMode: 'https://logo-dark-mode.svg',
logoUrlLightMode: 'https://logo-light-mode.svg',
logoUrl: 'https://logo-dark-mode.svg',
projectName: 'my app',
showEmailInput: true,
miniAuthOptions: ['google', 'facebook', 'twitch', 'apple'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,14 @@ export const Banner = ({
config = {}
}: BannerProps) => {
const { signIn = {} } = config
const { logoUrlDarkMode, logoUrlLightMode } = signIn
const { logoUrl } = signIn
const { theme } = useTheme()

return (
<>
{theme === 'dark' && logoUrlDarkMode && (
{logoUrl && (
<Box marginTop="5" justifyContent="center" alignItems="center">
<Image src={logoUrlDarkMode} style={{ height: '110px' }} />
</Box>
)}
{theme === 'light' && logoUrlLightMode && (
<Box marginTop="5" justifyContent="center" alignItems="center">
<Image src={logoUrlLightMode} style={{ height: '110px' }} />
<Image src={logoUrl} style={{ height: '110px' }} />
</Box>
)}
</>
Expand Down
3 changes: 1 addition & 2 deletions packages/kit/src/components/KitProvider/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ export interface KitConfig {
defaultTheme?: Theme,
position?: ModalPosition,
signIn?: {
logoUrlDarkMode?: string,
logoUrlLightMode?: string,
logoUrl?: string,
projectName?: string,
showEmailInput?: boolean,
miniAuthOptions?: string[]
Expand Down

0 comments on commit fe3fdc2

Please sign in to comment.