diff --git a/app/soapbox/features/developers/developers-menu.tsx b/app/soapbox/features/developers/developers-menu.tsx index b4dfdd9c44..cd8ee08bb0 100644 --- a/app/soapbox/features/developers/developers-menu.tsx +++ b/app/soapbox/features/developers/developers-menu.tsx @@ -7,6 +7,7 @@ import { changeSettingImmediate } from 'soapbox/actions/settings'; import snackbar from 'soapbox/actions/snackbar'; import { Text } from 'soapbox/components/ui'; import SvgIcon from 'soapbox/components/ui/icon/svg-icon'; +import sourceCode from 'soapbox/utils/code'; import Column from '../ui/components/column'; @@ -15,7 +16,23 @@ const messages = defineMessages({ leave: { id: 'developers.leave', defaultMessage: 'You have left developers' }, }); -const Developers = () => { +interface IDashWidget { + to?: string, + onClick?: React.MouseEventHandler, + children: React.ReactNode, +} + +const DashWidget: React.FC = ({ to, onClick, children }) => { + const className = 'bg-gray-200 dark:bg-gray-600 p-4 rounded flex flex-col items-center justify-center space-y-2 hover:-translate-y-1 transition-transform'; + + if (to) { + return {children}; + } else { + return ; + } +}; + +const Developers: React.FC = () => { const dispatch = useDispatch(); const history = useHistory(); const intl = useIntl(); @@ -29,57 +46,65 @@ const Developers = () => { }; return ( - -
- - + <> + +
+ + - - - - + + + + - - + + - - - - + + + + - - + + - - - - + + + + - - + + - - - - + + + + - - + + - - - - + + + + - + + + + +
+
+ +
+ + {sourceCode.displayName} {sourceCode.version} +
- + ); };