Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(APP-3714): Rename ODS library to gov-ui-kit #313

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

thekidnamedkd
Copy link
Contributor

@thekidnamedkd thekidnamedkd commented Oct 18, 2024

Description

Replace all docs, tokens, strings, component names, etc.

Task: APP-3714

Type of change

  • New feature (non-breaking change which adds functionality)

Checklist:

  • I have selected the correct base branch.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation.
  • My changes generate no new warnings.
  • Any dependent changes have been merged and published in downstream modules.
  • I ran all tests with success and extended them if necessary.
  • I have updated the CHANGELOG.md file in the root folder of the package after the [UPCOMING] title and before
    the latest version.
  • I have tested my code on the test network.

Copy link
Contributor

@shan8851 shan8851 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, I can see some references still in gukModulesProvider.tsx

const odsModulesContextDefaults: IGukModulesContext = {
    copy: modulesCopy,
};

const odsModulesContext = createContext<IGukModulesContext>(odsModulesContextDefaults);

export const GukModulesProvider: React.FC<IGukModulesProviderProps> = (props) => {
    const {
        queryClient = defaultQueryClient,
        wagmiConfig = defaultWagmiConfig,
        wagmiInitialState,
        coreProviderValues,
        children,
        values,
    } = props;

    const contextValues = useMemo(
        () => ({
            copy: values?.copy ?? odsModulesContextDefaults.copy,
        }),
        [values],
    );

    return (
        <odsModulesContext.Provider value={contextValues}>
            <WagmiProvider config={wagmiConfig} initialState={wagmiInitialState}>
                <QueryClientProvider client={queryClient}>
                    <GukCoreProvider values={coreProviderValues}>{children}</GukCoreProvider>
                </QueryClientProvider>
            </WagmiProvider>
        </odsModulesContext.Provider>
    );
};

export const useGukModulesContext = (): IGukModulesContext => {
    const values = useContext(odsModulesContext);

    return values;
};

@cgero-eth cgero-eth changed the title feat(APP-3714): Modify repo for ODS to GovKit transition feat(APP-3714): Rename ODS library to gov-ui-kit Oct 22, 2024
CHANGELOG.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
src/theme/tokens/index.mdx Outdated Show resolved Hide resolved
src/modules/index.mdx Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants