Skip to content

Commit

Permalink
Merge pull request #86 from Sokilskill/newDiary
Browse files Browse the repository at this point in the history
fix bmr
  • Loading branch information
Sokilskill authored Jan 25, 2024
2 parents 3536142 + 22a8a44 commit ade450b
Show file tree
Hide file tree
Showing 10 changed files with 42 additions and 15 deletions.
8 changes: 4 additions & 4 deletions src/assets/sprite.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion src/components/DayDashboard/CardDashboard/CardDashboard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ const Icon = styled.svg`
`;

export const Card = ({ value, children }) => {
const isLoading = useSelector(diarySelectors.getIsLoading);
// const isLoading = useSelector(diarySelectors.getIsLoading);
const isLoading = false;
let icon = '';
let displayValue = value;

Expand Down
2 changes: 1 addition & 1 deletion src/components/DayDashboard/DayDashboard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ const DayDashboard = () => {
);
};

export { DayDashboard };
export { DayDashboard };
5 changes: 3 additions & 2 deletions src/components/DayExercises/DayExercises.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ export const DayExercises = () => {

export const ExercisesTable = ({ exercises, date }) => {
const dispatch = useDispatch();
const isLoading = useSelector(diarySelectors.getIsLoading);
// const isLoading = useSelector(diarySelectors.getIsLoading);
const isLoading = false;

return (
<>
Expand Down Expand Up @@ -110,7 +111,7 @@ export const ExercisesTable = ({ exercises, date }) => {
>
<DeleteIconWrapper>
<Icon width={20} height={20} className="orange">
<use href={`${sprite}#icon-trash`}></use>
<use href={`${sprite}#icon-trash-03`}></use>
</Icon>
</DeleteIconWrapper>
</ButtonEx>
Expand Down
1 change: 1 addition & 0 deletions src/components/DayExercises/DayExercises.styled.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import '../../index.css';

export const ContainerEx = styled.div`
/* 320-375 */
margin: 0 auto;
box-sizing: border-box;
max-height: 824px;
width: 335px;
Expand Down
3 changes: 2 additions & 1 deletion src/components/DayProducts/DayProducts.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ const DayProducts = () => {
};
export const ProductsTable = ({ products, date }) => {
const dispatch = useDispatch();
const isLoading = useSelector(diarySelectors.getIsLoading);
// const isLoading = useSelector(diarySelectors.getIsLoading);
const isLoading = false;

return (
<>
Expand Down
3 changes: 2 additions & 1 deletion src/components/DayProducts/DayProducts.styled.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import '../../index.css';

export const Container = styled.div`
/* 320-375 */
margin: 0 auto;
box-sizing: border-box;
max-height: 824px;
width: 335px;
Expand Down Expand Up @@ -166,7 +167,7 @@ export const SliceText = styled.div`
export const IconWrapper = styled.svg`
width: ${(props) => props.size || '13px'};
height: ${(props) => props.size || '13px'};
fill: ${(props) => props.color || '#ffffff'};
stroke: #EF8964;
display: inline-block;
margin-left: 9px;
`;
Expand Down
7 changes: 5 additions & 2 deletions src/components/DaySwitch/DaySwitch.styled.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ export const DaySwitchContainer = styled.div`
align-items: center;
justify-content: center;
margin-right: 20px;
margin-top: 20px;
@media screen and (min-width: 768px) {
margin-right: 0;
margin-bottom: 32px;
}
`;

Expand All @@ -19,17 +19,20 @@ font-weight: bold;
background: transparent;
border: 0;
padding: 0;
margin-right: 8px;
box-sizing: border-box;
background-color: inherit;
color: var(--white);
font-size: 18px;
line-height: 1.5;
outline: none;
cursor: pointer;
width: 96px;
@media screen and (min-width: 768px) {
width: 135px;
width: 129px;
height: 32px;
font-size: 24px;
line-height: 1.5;
}
Expand Down
21 changes: 20 additions & 1 deletion src/pages/DiaryPage/DiaryPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,26 @@ export const IconInfo = ({ size }) => {
return (
<div style={{ width: `${size}px`, height: `${size}px` }}>
<Icon width={size} height={size} className="orange">
<use href={`${sprite}#icon-exclamation-mark`}></use>
<use
href={sprite + '#icon-Ellipse-1'}
style={{
fill: 'rgba(239, 160, 130, 1)',
width: '100%',
height: '100%',
position: 'relative',
}}
/>
<use
href={sprite + '#icon-tabler_exclamation-mark'}
style={{
fill: 'rgba(239, 237, 232, 1)',
position: 'absolute',
top: '50%',
left: '50%',
width: '100%',
height: '100%',
}}
/>
</Icon>
</div>
);
Expand Down
4 changes: 2 additions & 2 deletions src/pages/DiaryPage/DiaryPage.styled.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import '../../index.css';

export const Container = styled.div`
margin: 0 auto;
padding-top: 106px;
padding-top: 40px;
padding-bottom: 80px;
@media screen and (min-width: 375px) {
Expand Down Expand Up @@ -65,7 +65,7 @@ export const WrapTitle = styled.div`
margin-bottom: 40px;
@media screen and (min-width: 768px) {
height: 64px;
margin-top: 72px;
margin-bottom: 32px;
align-items: normal;
}
Expand Down

0 comments on commit ade450b

Please sign in to comment.