Skip to content

Commit

Permalink
fix(sdk): use variables in loader styles (#339)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsbh authored Sep 14, 2023
1 parent 1dd2ea7 commit 6838d9d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
5 changes: 5 additions & 0 deletions sdks/js/.changeset/fast-ears-attack.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@raystack/frontier': patch
---

use theme variables in loader colors
17 changes: 12 additions & 5 deletions sdks/js/packages/core/react/components/organization/profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ import { AddTeam } from './teams/add';
import { DeleteTeam } from './teams/delete';
import { TeamPage } from './teams/team';
import { UserSetting } from './user';
import { SkeletonTheme } from 'react-loading-skeleton';

interface OrganizationProfileProps {
organizationId: string;
defaultRoute?: string;
Expand All @@ -38,11 +40,16 @@ const rootRoute = new RootRoute({
component: () => {
return (
<ThemeProvider>
<Toaster richColors />
<Flex style={{ width: '100%', height: '100%' }}>
<Sidebar />
<Outlet />
</Flex>
<SkeletonTheme
highlightColor="var(--background-base)"
baseColor="var(--background-base-hover)"
>
<Toaster richColors />
<Flex style={{ width: '100%', height: '100%' }}>
<Sidebar />
<Outlet />
</Flex>
</SkeletonTheme>
</ThemeProvider>
);
}
Expand Down

0 comments on commit 6838d9d

Please sign in to comment.