diff --git a/ui/config-overrides.js b/ui/config-overrides.js index 3d70e9e4..60b66a51 100644 --- a/ui/config-overrides.js +++ b/ui/config-overrides.js @@ -29,18 +29,18 @@ module.exports = { devServer: function(configFunction) { return function(proxy, allowedHost) { const config = configFunction(proxy, allowedHost); - config.proxy = { - '/answer': { + config.proxy = [ + { + context: ['/answer', '/installation'], target: process.env.REACT_APP_API_URL, changeOrigin: true, secure: false, }, - '/installation': { + { + context: ['/custom.css'], target: process.env.REACT_APP_API_URL, - changeOrigin: true, - secure: false, - }, - }; + } + ]; return config; }; } diff --git a/ui/src/pages/Users/Personal/components/Answers/index.tsx b/ui/src/pages/Users/Personal/components/Answers/index.tsx index 1a37535e..7ddd1820 100644 --- a/ui/src/pages/Users/Personal/components/Answers/index.tsx +++ b/ui/src/pages/Users/Personal/components/Answers/index.tsx @@ -18,7 +18,9 @@ const Index: FC = ({ visible, data }) => { {data.map((item) => { return ( - +
= ({ visible, data }) => { {data.map((item) => { return ( - + = ({ visible, tabName, data }) => { {data.map((item) => { return (
= ({ visible, data }) => { {data.map((item) => { return ( - +
0 ? 'text-success' : 'text-danger' diff --git a/ui/src/pages/Users/Personal/components/Votes/index.tsx b/ui/src/pages/Users/Personal/components/Votes/index.tsx index 5cf369dd..65d09b01 100644 --- a/ui/src/pages/Users/Personal/components/Votes/index.tsx +++ b/ui/src/pages/Users/Personal/components/Votes/index.tsx @@ -18,7 +18,9 @@ const Index: FC = ({ visible, data }) => { {data.map((item) => { return ( - +