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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Refactor Menu related components life cycle methods #15868

Merged
merged 9 commits into from Apr 5, 2019

sider context should be clean

  • Loading branch information...
zombieJ committed Apr 4, 2019
commit 499dc5cb8b2070980d2453500d8e61edf3165e40
@@ -33,13 +33,11 @@ const dimensionMap = {
};

export interface SiderContextProps {
siderCollapsed: boolean;
siderCollapsed?: boolean;
collapsedWidth?: string | number;
}

export const SiderContext: Context<SiderContextProps> = createContext({
siderCollapsed: false,
});
export const SiderContext: Context<SiderContextProps> = createContext({});

export type CollapseType = 'clickTrigger' | 'responsive';

ProTip! Use n and p to navigate between commits in a pull request.
You can鈥檛 perform that action at this time.