diff --git a/src/components/home/command-actions.jsx b/src/components/home/command-actions.jsx index dad2df5..3860f5e 100644 --- a/src/components/home/command-actions.jsx +++ b/src/components/home/command-actions.jsx @@ -7,7 +7,7 @@ import { CommandList, } from '@/components/ui/command' -import { SignOut, GearSix } from '@phosphor-icons/react' +import { SignOut } from '@phosphor-icons/react' import { useEffect, useState } from 'react' import { Button } from '../ui/button' @@ -53,16 +53,6 @@ export default function CommandActions() { Sair - - - - diff --git a/src/pages/Home/index.jsx b/src/pages/Home/index.jsx index 2cd2379..e425368 100644 --- a/src/pages/Home/index.jsx +++ b/src/pages/Home/index.jsx @@ -66,20 +66,30 @@ export default function Home() {
-

- {`Guichê ${tickets[0]?.guiche || '0'} - Setor ${ - tickets[0]?.setor || '...' - }`} -

+
+

+ {tickets[0]?.guiche ? `Guichê ${tickets[0]?.guiche}` : ''} +

+ + + {!!tickets[0]?.guiche && !!tickets[0]?.setor && '-'} + + +

+ {tickets[0]?.setor ? `Setor ${tickets[0]?.setor}` : ''} +

+

- {`Atendimento ${tickets[0]?.description || ''}`} + {tickets[0]?.description + ? `Atendimento ${tickets[0]?.description}` + : ''}

diff --git a/vite.config.js.timestamp-1714475292592-dfb08d75bcf3a.mjs b/vite.config.js.timestamp-1714475292592-dfb08d75bcf3a.mjs new file mode 100644 index 0000000..95a6fd4 --- /dev/null +++ b/vite.config.js.timestamp-1714475292592-dfb08d75bcf3a.mjs @@ -0,0 +1,16 @@ +// vite.config.js +import { defineConfig } from "file:///C:/Users/samuel.teixeira/Documents/projects/painel-de-chamadas/node_modules/.pnpm/vite@5.0.11/node_modules/vite/dist/node/index.js"; +import react from "file:///C:/Users/samuel.teixeira/Documents/projects/painel-de-chamadas/node_modules/.pnpm/@vitejs+plugin-react@4.2.1_vite@5.0.11/node_modules/@vitejs/plugin-react/dist/index.mjs"; +import jsconfigPaths from "file:///C:/Users/samuel.teixeira/Documents/projects/painel-de-chamadas/node_modules/.pnpm/vite-jsconfig-paths@2.0.1_vite@5.0.11/node_modules/vite-jsconfig-paths/dist/index.mjs"; +var vite_config_default = defineConfig({ + plugins: [react(), jsconfigPaths()], + test: { + globals: true, + setupFiles: ["./test/setup.js"], + environment: "jsdom" + } +}); +export { + vite_config_default as default +}; +//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcuanMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJDOlxcXFxVc2Vyc1xcXFxzYW11ZWwudGVpeGVpcmFcXFxcRG9jdW1lbnRzXFxcXHByb2plY3RzXFxcXHBhaW5lbC1kZS1jaGFtYWRhc1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9maWxlbmFtZSA9IFwiQzpcXFxcVXNlcnNcXFxcc2FtdWVsLnRlaXhlaXJhXFxcXERvY3VtZW50c1xcXFxwcm9qZWN0c1xcXFxwYWluZWwtZGUtY2hhbWFkYXNcXFxcdml0ZS5jb25maWcuanNcIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfaW1wb3J0X21ldGFfdXJsID0gXCJmaWxlOi8vL0M6L1VzZXJzL3NhbXVlbC50ZWl4ZWlyYS9Eb2N1bWVudHMvcHJvamVjdHMvcGFpbmVsLWRlLWNoYW1hZGFzL3ZpdGUuY29uZmlnLmpzXCI7aW1wb3J0IHsgZGVmaW5lQ29uZmlnIH0gZnJvbSAndml0ZSdcclxuaW1wb3J0IHJlYWN0IGZyb20gJ0B2aXRlanMvcGx1Z2luLXJlYWN0J1xyXG5pbXBvcnQganNjb25maWdQYXRocyBmcm9tICd2aXRlLWpzY29uZmlnLXBhdGhzJ1xyXG5cclxuZXhwb3J0IGRlZmF1bHQgZGVmaW5lQ29uZmlnKHtcclxuICBwbHVnaW5zOiBbcmVhY3QoKSwganNjb25maWdQYXRocygpXSxcclxuICB0ZXN0Oi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