ant-design/.dumi/hooks/useDark.tsx
二货爱吃白萝卜 4e9ac02b08
fix: Tour panel token & home support dark mode (#44428)
* docs: update home page

* docs: home support dark mode

* docs: fix mobile

* docs: fix rtl

* docs: update locale
2023-08-25 19:08:52 +08:00

8 lines
162 B
TypeScript

import React from 'react';
export const DarkContext = React.createContext(false);
export default function useDark() {
return React.useContext(DarkContext);
}