Skip to content

Commit

Permalink
merge: base branch and resolve merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
sunilsabatp committed Jul 18, 2024
2 parents c3dcffc + 4dc86c5 commit aa337db
Show file tree
Hide file tree
Showing 211 changed files with 14,098 additions and 1,684 deletions.
1 change: 1 addition & 0 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ name: 'Chromatic'
on:
push:
branches:
- hotfix/chromatic-build-issue
- develop
- feature/redesign-explore-btn
- feature/design-projectlist-filter
Expand Down
4 changes: 4 additions & 0 deletions .storybook/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import me from '../public/static/locales/en/me.json';
import planet from '../public/static/locales/en/planet.json';
import planetcash from '../public/static/locales/en/planetcash.json';
import profile from '../public/static/locales/en/profile.json';
import project from '../public/static/locales/en/project.json';
import redeem from '../public/static/locales/en/redeem.json';
import registerTrees from '../public/static/locales/en/registerTrees.json';
import tenants from '../public/static/locales/en/tenants.json';
Expand All @@ -36,6 +37,7 @@ import meDE from '../public/static/locales/de/me.json';
import planetDE from '../public/static/locales/de/planet.json';
import planetcashDE from '../public/static/locales/de/planetcash.json';
import profileDE from '../public/static/locales/de/profile.json';
import projectDE from '../public/static/locales/de/project.json';
import redeemDE from '../public/static/locales/de/redeem.json';
import registerTreesDE from '../public/static/locales/de/registerTrees.json';
import tenantsDE from '../public/static/locales/de/tenants.json';
Expand All @@ -62,6 +64,7 @@ const messages_en = {
...planet,
...planetcash,
...profile,
...project,
...redeem,
...registerTrees,
...tenants,
Expand All @@ -87,6 +90,7 @@ const messages_de = {
...planetDE,
...planetcashDE,
...profileDE,
...projectDE,
...redeemDE,
...registerTreesDE,
...tenantsDE,
Expand Down
17 changes: 14 additions & 3 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ import { useTheme } from '../src/theme/themeContext';
// import { ThemeProvider } from 'emotion-theming';
import getMessages from './i18n';
import { NextIntlClientProvider } from 'next-intl';
import { TenantProvider } from '../src/features/common/Layout/TenantContext';
import { UserPropsProvider } from '../src/features/common/Layout/UserPropsContext';
import { lazy } from 'react';
import { useTheme } from '../src/theme/themeContext';

const globalStyles = lazy(() => import('../src/theme/theme'));

/*
* Global decorator to apply the styles to all stories
Expand All @@ -31,9 +37,14 @@ export const decorators = [
style={{ backgroundColor: 'transparent' }}
>
<MUIThemeProvider theme={materialTheme}>
<ThemeProvider theme={materialTheme}>
<Story />
</ThemeProvider>
{/* TenantProvider and UserPropsProvider are added for ProfileCard storybook to function properly */}
<TenantProvider>
<UserPropsProvider>
<ThemeProvider theme={materialTheme}>
<Story />
</ThemeProvider>
</UserPropsProvider>
</TenantProvider>
</MUIThemeProvider>
</div>
</NextIntlClientProvider>
Expand Down
2 changes: 2 additions & 0 deletions global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ type MessagesPlanetcash =
type MessagesProfile = typeof import('./public/static/locales/en/profile.json');
type MessagesProjectDetails =
typeof import('./public/static/locales/en/projectDetails.json');
type MessagesProject = typeof import('./public/static/locales/en/project.json');
type MessagesRedeem = typeof import('./public/static/locales/en/redeem.json');
type MessagesRegisterTrees =
typeof import('./public/static/locales/en/registerTrees.json');
Expand All @@ -52,6 +53,7 @@ type Messages = MessagesAllProjects &
MessagesPlanetcash &
MessagesProfile &
MessagesProjectDetails &
MessagesProject &
MessagesRedeem &
MessagesRegisterTrees &
MessagesTenants &
Expand Down
2 changes: 2 additions & 0 deletions i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export default getRequestConfig(async ({ locale }) => {
...(await import(`./public/static/locales/${locale}/planetcash.json`))
.default,
...(await import(`./public/static/locales/${locale}/profile.json`)).default,
...(await import(`./public/static/locales/${locale}/project.json`)).default,
...(await import(`./public/static/locales/${locale}/redeem.json`)).default,
...(await import(`./public/static/locales/${locale}/registerTrees.json`))
.default,
Expand Down Expand Up @@ -54,6 +55,7 @@ export default getRequestConfig(async ({ locale }) => {
...(await import(`./public/static/locales/en/planet.json`)).default,
...(await import(`./public/static/locales/en/planetcash.json`)).default,
...(await import(`./public/static/locales/en/profile.json`)).default,
...(await import(`./public/static/locales/en/project.json`)).default,
...(await import(`./public/static/locales/en/redeem.json`)).default,
...(await import(`./public/static/locales/en/registerTrees.json`)).default,
...(await import(`./public/static/locales/en/tenants.json`)).default,
Expand Down
Loading

0 comments on commit aa337db

Please sign in to comment.