diff --git a/src/App.tsx b/src/App.tsx
index c34b079..9c49ce4 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -1,7 +1,7 @@
import React, { useEffect } from "react";
import "./index.css";
import { Box, Grommet } from "grommet";
-import { HashRouter, BrowserRouter, useHistory } from "react-router-dom";
+import { BrowserRouter, useHistory } from "react-router-dom";
import { Routes } from "src/Routes";
import { AppHeader } from "src/components/appHeader";
@@ -19,11 +19,13 @@ import { Toaster, ToasterComponent } from "./components/ui/toaster";
export const toaster = new Toaster();
function App() {
- return document.location.hash ? (
-
-
-
- ) : (
+ if (document.location.hash) {
+ document.location.href = `${
+ document.location.origin
+ }/${document.location.hash.slice(2)}`;
+ }
+
+ return (
diff --git a/src/components/dropdown/Dropdown.tsx b/src/components/dropdown/Dropdown.tsx
index 04426fc..551f11d 100644
--- a/src/components/dropdown/Dropdown.tsx
+++ b/src/components/dropdown/Dropdown.tsx
@@ -1,4 +1,4 @@
-import { Box, TextInput } from "grommet";
+import { Box, BoxProps, TextInput } from "grommet";
import { CaretDownFill, CaretUpFill, Search } from "grommet-icons";
import React, { Fragment } from "react";
import styled, { css } from "styled-components";
@@ -7,6 +7,7 @@ export interface IDropdownProps {
defaultValue?: T;
value?: T;
className?: string;
+ padDataList?: BoxProps["pad"];
keyField: keyof T;
renderValue: (dataItem: T) => JSX.Element;
renderItem: (dataItem: T) => JSX.Element;
@@ -148,6 +149,7 @@ export class Dropdown extends React.Component<
themeMode,
itemHeight = "47px",
itemStyles = {},
+ padDataList = "small",
} = this.props;
return (
@@ -167,15 +169,15 @@ export class Dropdown extends React.Component<
{this.state.isOpen ? (
{
- console.log('CLICK')
- e.stopPropagation()
+ console.log("CLICK");
+ e.stopPropagation();
this.setState({ ...this.state, isOpen: false });
}}
/>
) : (
{
- e.stopPropagation()
+ e.stopPropagation();
this.setState({ ...this.state, isOpen: true });
}}
/>
@@ -183,10 +185,10 @@ export class Dropdown extends React.Component<
{this.state.isOpen ? (