add bottom bar
This commit is contained in:
@@ -9,6 +9,7 @@ import { QuestionCard } from "./components/QuestionCard";
|
|||||||
import { Link } from "react-router-dom";
|
import { Link } from "react-router-dom";
|
||||||
import { SelectedQuestionsSideBar } from "./components/SelectedQuestionsSideBar";
|
import { SelectedQuestionsSideBar } from "./components/SelectedQuestionsSideBar";
|
||||||
import { FiltersSideBar } from "./components/FiltersSideBar";
|
import { FiltersSideBar } from "./components/FiltersSideBar";
|
||||||
|
import { BottomBar } from "./components/BottomBar";
|
||||||
|
|
||||||
type NewAssessementManualForm = {
|
type NewAssessementManualForm = {
|
||||||
axisWeights: Record<string, any>
|
axisWeights: Record<string, any>
|
||||||
@@ -67,9 +68,10 @@ export const NewAssessementManual = () => {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Navigator home />
|
<Navigator home />
|
||||||
<div className="grid grid-cols-5 gap-4 mt-4 mx-4">
|
<BottomBar/>
|
||||||
|
<div className="grid grid-cols-5 gap-4 mt-4 mx-4 pb-20">
|
||||||
<FiltersSideBar/>
|
<FiltersSideBar/>
|
||||||
<div className="col-span-3 border-l-2 border-r-2 border-gray-300 px-6 pb-20"> {/*bg-blue-500*/}
|
<div className="col-span-3 border-l-2 border-r-2 border-gray-300 px-6 pb-10">
|
||||||
<QuestionCard title="Question 1"
|
<QuestionCard title="Question 1"
|
||||||
onAddQuestion={addQuestion}
|
onAddQuestion={addQuestion}
|
||||||
onRemoveQuestion={removeQuestion}/>
|
onRemoveQuestion={removeQuestion}/>
|
||||||
|
|||||||
21
app/javascript/pages/assessment/components/BottomBar.tsx
Normal file
21
app/javascript/pages/assessment/components/BottomBar.tsx
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
import React, { FC, } from "react";
|
||||||
|
import { Button } from "../../../components";
|
||||||
|
|
||||||
|
type Props = {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
export const BottomBar: FC<Props> = () => {
|
||||||
|
return (
|
||||||
|
<div className="fixed bottom-0 bg-white w-full h-16 flex items-center justify-end shadow-lg">
|
||||||
|
<div className="flex gap-6 mx-16">
|
||||||
|
<Button className="w-32">
|
||||||
|
Cancelar
|
||||||
|
</Button>
|
||||||
|
<Button type="primary" className="w-32">
|
||||||
|
Salvar
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
@@ -15,9 +15,7 @@ export const FiltersSideBar: FC<Props> = () => {
|
|||||||
return (
|
return (
|
||||||
<SideBar header="Filtros">
|
<SideBar header="Filtros">
|
||||||
<div className="mt-3">
|
<div className="mt-3">
|
||||||
<form className="flex flex-col gap-4"
|
<form className="flex flex-col gap-4">
|
||||||
// onSubmit={addAxisForm.handleSubmit(handleAddAxis)}
|
|
||||||
>
|
|
||||||
<SelectFilterField label="Grau de Dificuldade:" options={[
|
<SelectFilterField label="Grau de Dificuldade:" options={[
|
||||||
{id: 1, label: 'Fácil'},
|
{id: 1, label: 'Fácil'},
|
||||||
{id: 2, label: 'Média'},
|
{id: 2, label: 'Média'},
|
||||||
@@ -61,7 +59,6 @@ export const FiltersSideBar: FC<Props> = () => {
|
|||||||
Limpar Filtro
|
Limpar Filtro
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</SideBar>
|
</SideBar>
|
||||||
|
|||||||
Reference in New Issue
Block a user